Installing GCC to Mac OS X Leopard without installing Xcode Installing GCC to Mac OS X Leopard without installing Xcode xcode xcode

Installing GCC to Mac OS X Leopard without installing Xcode


Apple released the command line tools for Xcode in 2012 Feb, the URL:https://developer.apple.com/downloads/index.action?=command%20line%20tools

This tool package includes make and gcc, I searched for a very long time,and finally, Apple released it.

If you download Xcode 4.3 from AppStore for Mac, since the Xcode is packedas Xcode.app and placed in /Application folder, you will have no chance touse the LLVM compiler, nor make utility from the command line.

So, download this package now, if you use Mac OSX Lion (Mac OSX 10.7.3 required),and you need to install some utilities, e.g., mySQL and php mCrpyt module, etc.

Quote from the Apple download site:

This package enables UNIX-style development via Terminal by installingcommand line developer tools, as well as Mac OSX SDK frameworks andheaders. Many useful tools are included, such as the Apple LLVM compiler,linker, and Make. If you use Xcode, these tools are also embedded withthe Xcode IDE, and can be installed on your system using the Downloadspreferences pane with Xcode 4.3 and later. This package requires Mac OS X10.7.3 or later.


If you don't have Xcode on a system restore disk, retail copy of OS X, or as an optional installer on your hard drive, you will need to download the appropriate Xcode package for Leopard. Xcode 3.2.5 is only for Snow Leopard, OS X 10.6. For 10.5, the most recent Xcode is 3.1.4 (I believe) which is a 993MB download. When logged in, you should find it in your Developer Download and ADC Program Assets section of the Developer Connection website (you may have to search a bit to find that, though).

Note the Apple-supplied GCC has a number of Apple-developed enhancements, particularly in the area of multi-architecture support, that some open-source projects, in particular, Python, depend on. You may be able to get things to work with a vanilla GCC but is it worth your time and hassle to hack around and test and guess?