├── .gitignore ├── gcc.png ├── packages_list.txt ├── GCC-10.7.pmdoc ├── 09x.xml ├── 02clang.xml ├── 01gcc.xml ├── 03llvm.xml ├── 05developertoolssystemsupport.xml ├── 04developertoolscli.xml ├── 02clang-contents.xml ├── 05developertoolssystemsupport-contents.xml ├── 06versioneddevelopertoolssystemsupport.xml ├── index.xml ├── 06versioneddevelopertoolssystemsupport-contents.xml ├── 07xcodeusersystemsupport.xml ├── 01gcc-contents.xml ├── 03llvm-contents.xml ├── 07xcodeusersystemsupport-contents.xml ├── 08devsdk.xml └── 09x-contents.xml ├── GCC-10.6.pmdoc ├── 02clang.xml ├── 01gcc.xml ├── 03llvm.xml ├── 05developertoolssystemsupport.xml ├── 04developertoolscli.xml ├── 02clang-contents.xml ├── 05developertoolssystemsupport-contents.xml ├── 06versioneddevelopertoolssystemsupport.xml ├── index.xml ├── 06versioneddevelopertoolssystemsupport-contents.xml ├── 01gcc-contents.xml ├── 03llvm-contents.xml └── 07devsdk.xml └── README.rst /.gitignore: -------------------------------------------------------------------------------- 1 | Install\ Xcode.app 2 | -------------------------------------------------------------------------------- /gcc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/not-kennethreitz/osx-gcc-installer/HEAD/gcc.png -------------------------------------------------------------------------------- /packages_list.txt: -------------------------------------------------------------------------------- 1 | CoreAudioSDK.pkg 2 | DevSDK.pkg 3 | DeveloperToolsCLI.pkg 4 | MacOSX10.6.pkg 5 | OpenGLSDK.pkg 6 | QuickTimeSDK.pkg 7 | WebKitSDK.pkg 8 | clang.pkg 9 | llvm-gcc4.2.pkg 10 | gcc4.2.pkg 11 | -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/09x.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.X11SDKLeo4.0.0.9000000000.1.1309742044/relocatableidentifierparent09x-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/X11SDK.pkgX11SDKcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/02clang.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.clangLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo02clang-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/clang.pkgclangcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/02clang.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.clangLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo02clang-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/clang.pkgclangcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/01gcc.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.gcc4.2Leo4.2.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall01gcc-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/gcc4.2.pkggcc4.2com.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/01gcc.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.gcc4.2Leo4.2.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall01gcc-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/gcc4.2.pkggcc4.2com.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/03llvm.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.llvm-gcc4.2Leo4.2.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall03llvm-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/llvm-gcc4.2.pkgllvm-gcc4.2com.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/03llvm.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.llvm-gcc4.2Leo4.2.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall03llvm-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/llvm-gcc4.2.pkgllvm-gcc4.2com.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/05developertoolssystemsupport.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DeveloperToolsSystemSupportLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall05developertoolssystemsupport-contents.xml./System/Library/UserEventPlugins/InstrumentsHotKeyAgent.plugin/Contents/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DeveloperToolsSystemSupport.pkgDeveloperToolsSystemSupportcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/05developertoolssystemsupport.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DeveloperToolsSystemSupportLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall05developertoolssystemsupport-contents.xml./System/Library/UserEventPlugins/InstrumentsHotKeyAgent.plugin/Contents/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DeveloperToolsSystemSupport.pkgDeveloperToolsSystemSupportcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/04developertoolscli.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DeveloperToolsCLILeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall04developertoolscli-contents.xml./usr/share/git-gui/lib/Git Gui.app/Contents/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DeveloperToolsCLI.pkgDeveloperToolsCLIcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/04developertoolscli.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DeveloperToolsCLILeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall04developertoolscli-contents.xml./usr/share/git-gui/lib/Git Gui.app/Contents/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DeveloperToolsCLI.pkgDeveloperToolsCLIcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsBoth.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/02clang-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/02clang-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/05developertoolssystemsupport-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/05developertoolssystemsupport-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/06versioneddevelopertoolssystemsupport.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.VersionedDeveloperToolsSystemSupportLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo06versioneddevelopertoolssystemsupport-contents.xml./Library/Developer/4.0/Instruments/Frameworks/DTPerformanceSession.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTInstrumentsCP.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTInstrumentsServer.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTMessageQueueing.framework/Versions/A/Resources/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/VersionedDeveloperToolsSystemSupport.pkgVersionedDeveloperToolsSystemSupportcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableVersioned.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/06versioneddevelopertoolssystemsupport.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.VersionedDeveloperToolsSystemSupportLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo06versioneddevelopertoolssystemsupport-contents.xml./Library/Developer/4.0/Instruments/Frameworks/DTPerformanceSession.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTInstrumentsCP.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTInstrumentsServer.framework/Versions/A/Resources/version.plist./Library/Developer/4.0/Instruments/PrivateFrameworks/DTMessageQueueing.framework/Versions/A/Resources/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/VersionedDeveloperToolsSystemSupport.pkgVersionedDeveloperToolsSystemSupportcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableVersioned.pkg-group -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | OSX GCC Installer 2 | ================= 3 | 4 | The osx-gcc-installer allows you to install the essential compilers from either pre-built binary packages or helps you create your own installer. 5 | 6 | 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. 7 | 8 | If you still need gcc-4.2, and you use Homebrew, you can install it using the apple-gcc42 package from homebrew/dupes. 9 | 10 | Option 1: Downloading Pre-Built Binaries 11 | ---------------------------------------- 12 | 13 | You can download the installers on the 14 | `Releases page `_ or use the links below: 15 | 16 | * OS X 10.7 Lion: `GCC-10.7-v0.3.pkg `_ 17 | * OS X 10.6 Snow Leopard: `GCC-10.6-v0.3.pkg `_ 18 | 19 | Option 2: Build Your Own 20 | ------------------------ 21 | 22 | To create your own package, place the Xcode Installer for your OS version 23 | (``Install Xcode.app``) in the root directory of the repository, and edit the 24 | packages_list.txt file to include the packages you want. Then run the build.py script:: 25 | 26 | python build.py 27 | 28 | it will produce a build_essentials.pkg file by default, containing all the 29 | desired packages. For example, if you want to include all the default packages 30 | but want to add the 10.6 SDK, the file would look as follows:: 31 | 32 | DevSDK.pkg 33 | DeveloperToolsCLI.pkg 34 | MacOSX10.6.pkg 35 | clang.pkg 36 | llvm-gcc4.2.pkg 37 | gcc4.2.pkg 38 | 39 | 40 | What's Included? 41 | ---------------- 42 | 43 | * GCC 44 | * LLVM 45 | * Clang 46 | * Developer CLI Tools (purge, etc) 47 | * DevSDK (headers, etc) 48 | 49 | References 50 | ---------- 51 | 52 | The source code from Apple for these packages is available here: 53 | 54 | - http://www.opensource.apple.com/release/developer-tools-41/ 55 | 56 | 57 | Troubleshooting 58 | --------------- 59 | 60 | *Do not install this if you already have Xcode installed!* Mixing Xcode and osx-gcc-installer 61 | is known to cause various difficult-to-diagnose problems and is not recommended. 62 | 63 | If you intend to only use command line tools you should first uninstall Xcode entirely before 64 | installing osx-gcc-installer. 65 | -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/index.xml: -------------------------------------------------------------------------------- 1 | GCC/Users/kreitz/osx-gcc-installer/GCC-10.6.pkgcom.apple.gccGNU Compliergcc.pngSnow Leopard OnlyOS X Snow Leopard is the only supported platform.Snow Leopard OnlyOS X Snow Leopard is the only supported platform.01gcc.xml02clang.xml03llvm.xml04developertoolscli.xml05developertoolssystemsupport.xml06versioneddevelopertoolssystemsupport.xml07devsdk.xmlproperties.titledescriptionproperties.anywhereDomainproperties.systemDomain 34 | -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/index.xml: -------------------------------------------------------------------------------- 1 | GCC/Users/kreitz/osx-gcc-installer/GCC-10.7-x11.pkgcom.apple.gccGNU Compliergcc.pngLion OnlyOS X Lion is the only supported platform.Lion OnlyOS X Lion is the only supported platform.01gcc.xml02clang.xml03llvm.xml04developertoolscli.xml05developertoolssystemsupport.xml06versioneddevelopertoolssystemsupport.xml07xcodeusersystemsupport.xml08devsdk.xml09x.xmlproperties.titledescriptionproperties.anywhereDomainproperties.systemDomain 34 | -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/06versioneddevelopertoolssystemsupport-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/06versioneddevelopertoolssystemsupport-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/07xcodeusersystemsupport.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.XcodeUserSystemSupportLeo1.0.0.9000000000.1.1249367152/compoundPackagePathparentidentifierinstallTo./preinstall./postinstall07xcodeusersystemsupport-contents.xml./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleIntelProfile.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileCallstackAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileFamily.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileKEventAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileReadCounterAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileRegisterStateAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileThreadInfoAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/AppleProfileFamily.framework/Versions/A/Resources/AppleProfileTimestampAction.kext/Contents/version.plist./System/Library/PrivateFrameworks/CoreProfile.framework/Versions/A/Resources/version.plist/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/XcodeUserSystemSupport.pkgXcodeUserSystemSupportcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/01gcc-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/01gcc-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/03llvm-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/03llvm-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/07xcodeusersystemsupport-contents.xml: -------------------------------------------------------------------------------- 1 | name -------------------------------------------------------------------------------- /GCC-10.6.pmdoc/07devsdk.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DevSDKLeo4.0.0.9000000000.1.1309742044/compoundPackagePathparentidentifierinstallTo07devsdk-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DevSDK.pkgDevSDKcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/08devsdk.xml: -------------------------------------------------------------------------------- 1 | com.apple.pkg.DevSDKLeo4.0.0.9000000000.1.1309742044/compoundPackagePathparentidentifierinstallTo08devsdk-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$Install Xcode.app/Contents/Resources/Packages/DevSDK.pkgDevSDKcom.apple.FindSystemFiles.pkg-groupcom.apple.DevToolsNonRelocatableShared.pkg-group -------------------------------------------------------------------------------- /GCC-10.7.pmdoc/09x-contents.xml: -------------------------------------------------------------------------------- 1 | name --------------------------------------------------------------------------------