I installed the latest Homebrew on OS X 10.6.5
Running any command generates this warning:
/usr/local/Library/Homebrew/global.rb:34: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
Why I’m getting this warning? and how to remedy?
First, there are two brew commands that are helpful when debugging problems. They are:
Second, Homebrew is telling you that
/usr/local/binis set to be too permissive in who can write to that directory — a potential security problem. To remedy this, you can reset your permissions back to what Homebrew intended.If you get an error while trying to do this, it may mean that your /usr/local directory (and subdirectories) are owned by the wrong user. If that’s the case, I would consider deleting your /usr/local directory and reinstalling Homebrew correctly. Alternatively, you can override the error by prefixing the last command with sudo and entering your admin password: