Today I was trying to upgrade all my brew kegs with brew upgrade
. But it trips up on libiconv.
You might try like I did and call brew with sudo but you get this message
Error: Cowardly refusing to `sudo brew upgrade`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
Interesting, so now what? We could login as root but that might complicate things. What I did was give myself (a non-root user) access to the file. Like so
sudo su
<password>
chown <username> /usr/local/Cellar/libiconv/
exit
Now that directory belongs to the current user and brew has no issues modifying that directory!
http://stackoverflow.com/questions/14527521/brew-doctor-says-warning-usr-local-include-isnt-writable
sudo chown -R $USER /usr/local/include
If you need help solving your business problems with software read how to hire me.