When trying to install packages or linking packages with Homebrew on Mac OSX, you might encounter the following error:
"/usr/local/bin is not writable. You should change its permissions."
This occurs when your current user does not have permissions to symlink files in the
To fix this, simply change the ownership of these files so you can modify them:
chown -R yourname:admin /usr/local/bin
brew link <package> or
brew install <package> should now work without any issues.