Skip to content


Subversion checkout URL

You can clone with
Download ZIP
GCC Installer for OSX! Without Xcode!
Latest commit d7ebd50 @kennethreitz Merge pull request #19 from WnP/patch-1
fix wrong version urls


OSX GCC Installer

The osx-gcc-installer allows you to install the essential compilers from either pre-built binary packages or helps you create your own installer.

For Lion and above users, Apple now provides an official Command Line Tools for Xcode package that you can install without needing to install Xcode itself! You can install it with xcode-select --install on Mavericks and Yosemite or download it from Apple's developer site (free registration required) and search for "Command Line Tools" on Lion and Mountain Lion.

If you still need gcc-4.2, and you use Homebrew, you can install it using the apple-gcc42 package from homebrew/dupes.

Option 1: Downloading Pre-Built Binaries

You can download the installers on the Releases page or use the links below:

Option 2: Build Your Own

To create your own package, place the Xcode Installer for your OS version (Install in the root directory of the repository, and edit the packages_list.txt file to include the packages you want. Then run the script:


it will produce a build_essentials.pkg file by default, containing all the desired packages. For example, if you want to include all the default packages but want to add the 10.6 SDK, the file would look as follows:


What's Included?

  • GCC
  • LLVM
  • Clang
  • Developer CLI Tools (purge, etc)
  • DevSDK (headers, etc)


The source code from Apple for these packages is available here:


Do not install this if you already have Xcode installed! Mixing Xcode and osx-gcc-installer is known to cause various difficult-to-diagnose problems and is not recommended.

If you intend to only use command line tools you should first uninstall Xcode entirely before installing osx-gcc-installer.

Something went wrong with that request. Please try again.