Is all that current mess just so that I don't need sudo for brew?
Is all that current mess just so that I don't need sudo for brew?
Just curious whats wrong with using /usr/local. This is what its for, after all ..
Using sudo would also be a security advantage since not every program running under your username would be able to modify all binaries in /usr/local.
http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHI...
Really brew should always be installing somewhere under ~/ if you are installing packages as a user.
Error: Cowardly refusing to `sudo brew install`
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.
I don't know if it's different now, but a quick Google search indicates that brew still behaves like this. I would like to use brew with sudo, but I don't want to use unsupported methods.
When XCode needed some license approval after the recent upgrade to support iOS9, Brew warned me that license can only be approved ( programatically ) by root. I tried to sudo brew and received the warning you showed. That was 1 week ago.
sudo su at your own risk, hehe.
Because "sudo" (that OP wants to run them with) runs them as root by default?