Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/not-kennethreitz/osx-gcc-installer
GCC Installer for OSX! Without Xcode!
https://github.com/not-kennethreitz/osx-gcc-installer
compilers gcc installers
Last synced: 6 days ago
JSON representation
GCC Installer for OSX! Without Xcode!
- Host: GitHub
- URL: https://github.com/not-kennethreitz/osx-gcc-installer
- Owner: not-kennethreitz
- Archived: true
- Created: 2011-07-29T20:00:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-04-20T20:50:39.000Z (over 9 years ago)
- Last Synced: 2024-08-02T16:04:17.970Z (3 months ago)
- Topics: compilers, gcc, installers
- Language: Python
- Homepage: http://kennethreitz.com/xcode-gcc-and-homebrew.html
- Size: 482 KB
- Stars: 3,048
- Watchers: 149
- Forks: 233
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
- awesome - osx-gcc-installer - GCC Installer for OSX! Without Xcode! (installers)
- awesome - osx-gcc-installer - GCC Installer for OSX! Without Xcode! (compilers)
README
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:* OS X 10.7 Lion: `GCC-10.7-v0.3.pkg `_
* OS X 10.6 Snow Leopard: `GCC-10.6-v0.3.pkg `_Option 2: Build Your Own
------------------------To create your own package, place the Xcode Installer for your OS version
(``Install Xcode.app``) in the root directory of the repository, and edit the
packages_list.txt file to include the packages you want. Then run the build.py script::python build.py
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::DevSDK.pkg
DeveloperToolsCLI.pkg
MacOSX10.6.pkg
clang.pkg
llvm-gcc4.2.pkg
gcc4.2.pkgWhat's Included?
----------------* GCC
* LLVM
* Clang
* Developer CLI Tools (purge, etc)
* DevSDK (headers, etc)References
----------The source code from Apple for these packages is available here:
- http://www.opensource.apple.com/release/developer-tools-41/
Troubleshooting
---------------*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.