Install the Mac OS X developer tools, as described here:
http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools
Install homebrew
Install the Mac OS X developer tools, as described here:
http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools
Install homebrew