In order to compile our own software, we need to install Xcode — Apple's development environment for Mac OS X. Xcode is available as a free download from the Mac App Store.
Since Xcode 4.2, a non-LLVM version of the
gcc compiler is no longer included. This is not a problem for the majority of software you will install – including all the software in this guide – but you should be aware of the potential issues it may create. If you encounter problems, check out this Mac OS X GCC Installer.
Presumably, the Mac OS X GCC Installer could replace Xcode entirely for our needs but this has not been tested.
Once you have Xcode installed, you are ready to begin installing your own custom built packages. To proceed, launch Terminal from Applications ➤ Utilities.