- 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
- Install the homebrew package from the Internet under your login identity (not root)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Run "brew doctor" before installing anything
brew doctor