The easiest way to install various Unix tools and open source software onto OS X is via a package manager or repository, unfortunately OS X doesn’t come with one, but fortunately there are some good folks that care. They come in the form of Homebrew.
Download and install it, you also need to open Xcode agree to the license and it will install its components.
Go to Xcode preferences and then look in the ‘Locations‘ tab, select the latest Command Line Tools and then install them.
You still need to get the the Command Line Tools v5 for Mavericks you can either download from the Developers site or run a command in the Terminal
Check if you already have them
If you don’t get a valid path in the returned answer in Terminal then install
It will prompt a dialog box to install them
You do need to install these tools as Homebrew will complain…
To download install Homebrew run the install script on the command line as below and let the script do its thing:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After installing and as suggested in the command line, to check for any issues with the install run:
To search for an application:
brew install <application-name>
To list all apps installed by Homebrew
To remove an installed application
brew remove <application-name>
To update Homebrew
To see what else you can do
Where does Homebrew install stuff …. in the Cellar
Where the brew lives.