title: Installing GCC to Mac OS X Leopard without installing Xcode
body: <p>I'd like to install gcc to Mac OS X Leopard, and compile some software from source using MacPorts. As <a href="http://www.macports.org/install.php" rel="nofollow noreferrer">http://www.macports.org/install.php</a> has suggested, I've registered as an Apple developer. Now I have to download the Xcode developer tools, but it seems to be enormous. Is such a big download (3.5GB or 1GB) really necessary just for gcc and some header files (mostly for console applications)? Is there a smaller download (possibly on some other site) which would work? Did I find the proper download (<em>Xcode Developer Tools</em>), as required by the MacPorts website?</p>
  
  <p>I don't need an IDE, I don't need any iOS-related software, I don't need big SDKs, I don't want to do any GUI programming.</p>
  
  <p>I don't have an install disk.</p>
  
  <p>There was a similar question <a href="https://stackoverflow.com/questions/114884/is-there-a-way-to-install-gcc-in-osx-without-installing-xcode">Is there a way to install gcc in OSX without installing Xcode?</a> . My question is different, because I wouldn't mind downloading and istalling <em>parts</em> of Xcode to get gcc, as long as it's reasonably large, say 300 MB uncompressed. Is that possible?</p>
  
  <p>At <a href="http://developer.apple.com/devcenter/mac/index.action" rel="nofollow noreferrer">http://developer.apple.com/devcenter/mac/index.action</a> I've found the download link <a href="http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg" rel="nofollow noreferrer">http://developer.apple.com/ios/download.action?path=/ios/ios_sdk_4.2__final/xcode_3.2.5_and_ios_sdk_4.2_final.dmg</a> , which is a 3.5GB download.  Based on some answers below, I noticed that Xcode 3.2.5 is for Snow Leopard, and I need Xcode 3.1.4 (1GB) for Leopard, which I can get from <a href="http://connect.apple.com/" rel="nofollow noreferrer">http://connect.apple.com/</a> (titled <em>Downloads and ADC Program Assets</em>) after registration and logging in, clicking on the section <em>Downloads / Developer Tools</em>, then finding <em>Xcode 3.1.4 Developer Tools</em>. The download link is <a href="http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.1.4_developer_tools%2Fxcode314_2809_developerdvd.dmg" rel="nofollow noreferrer">http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.1.4_developer_tools%2Fxcode314_2809_developerdvd.dmg</a> .</p>