####2: Homebrew - The missing package manager for OS X tested on Mac OS X 10.9.4 Mavericks
First you need to install Xcode via the Mac AppStore.
Then download and install the Xcode Command Line Tools through
Xcode > Preferences > Downloads > Command Line Tools
.