Installing Homebrew on OSX
- install the xcode command line tools
sudo xcode-select --install
- Verify the installation of gcc
gcc --version
- Change the ownership of /usr/local to your login identity (not root)
sudo chown -R `whoami` /usr/local
Note: You may have to do this again someday for whatever reason