Return to site

Download Xcode For Snow Leopard

broken image


If you don't really need Xcode, but all you need are the Xcode command line tools, here's how to install them on Snow Leopard. Simply download the 'Command Line Tools' package from Apple Developer (free account required; you can use your Apple ID).

Question or issue on macOS:

  1. Snow Leopard is the gateway to update your Mac to a newer operating system via Apple Purchases. Having seen the negative reviews, I thought I'd give it a go and see what happens. Nothing to lose. Well, imagine my surprise when I copied the iso to a USB stick, stuck it into my 2008 MacBook Pro and it worked beautifully.
  2. Ok, so to build for iOS, I had to buy a macbook (sigh), so I biught a cheap one, that has 10.6 (Snow Leopard). Unity 4.6 runs fine and it plays at a.
  3. I have Mac OS 10.6.8 (Snow Leopard). It runs smooth, without problems, and I don't want to upgrade it to Lion, or Mountain Lion. I have on it xcode 3.2.6, but I want newer version (4.2) But I haven't paid Developer Program.

I'd like to install gcc to Mac OS X Leopard, and compile some software from source using MacPorts. As http://www.macports.org/install.php 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 (Xcode Developer Tools), as required by the MacPorts website?

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.

I don't have an install disk.

There was a similar question Is there a way to install gcc in OSX without installing Xcode? . My question is different, because I wouldn't mind downloading and istalling parts of Xcode to get gcc, as long as it's reasonably large, say 300 MB uncompressed. Is that possible?

Download Xcode For Snow Leopard Dmg

At http://developer.apple.com/devcenter/mac/index.action I've found the download link 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 , 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 http://connect.apple.com/ (titled Downloads and ADC Program Assets) after registration and logging in, clicking on the section Downloads / Developer Tools, then finding Xcode 3.1.4 Developer Tools. The download link is http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/download?path=%2FDeveloper_Tools%2Fxcode_3.1.4_developer_tools%2Fxcode314_2809_developerdvd.dmg .

How to solve this problem?

Solution no. 1:

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?

Solution no. 2:

Maybe this one is right for you: https://github.com/kennethreitz/osx-gcc-installer

I'm using homebrew and everything is fine: http://blog.strug.de/2011/09/homebrew-without-xcode-save-15-gb/

Solution no. 3:

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 packed
as Xcode.app and placed in /Application folder, you will have no chance to
use 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 installing
command line developer tools, as well as Mac OSX SDK frameworks and
headers. Many useful tools are included, such as the Apple LLVM compiler,
linker, and Make. If you use Xcode, these tools are also embedded with
the Xcode IDE, and can be installed on your system using the Downloads
preferences pane with Xcode 4.3 and later. This package requires Mac OS X
10.7.3 or later.

Solution no. 4:

Nightwish discografia mega. GCC is available as a binary package from fink, the other OS X package manager.

Solution no. 5:

Have you thinked about GNU-Darwin ports? There are many binary packages, gcc too, but i don't tried it on my own.

Solution no. 6:

You'll find an (albeit older) version of Xcode on your Mac OS X install disk.

This won't have the iOS bits, etc. (it will have the Cocos Mac OS X development bits however) , but should be all that you require.

Solution no. 7:

The Xcode download is quite big, but if you really want things to work well, you should use it. I've tried other distributions of GCC on the Mac OS X and I've got so much troubles with them… I could not compile PHP without the GCC Xcode distrib for instance.

Download

Solution no. 8:

Apple had released the command line tool in Xcode 4.3.2 in late March 2012.

I found the item can be downloaded from AppStore in Mac or the download section of XCode.
GCC might be easier to get familier, and Apple version command line tool is fine to me.

Hope this helps!

Quickstart

Download Xcode For Snow Leopard Wallpaper

  1. Install Xcode and the Xcode Command Line Tools
  2. Agree to Xcode license in Terminal: sudo xcodebuild -license
  3. Install MacPorts for your version of the Mac operating system:

Installing MacPorts

MacPorts version 2.6.4 is available in various formats for download and installation (note, if you are upgrading to a new major release of macOS, see the migration info page):

  • 'pkg' installers for Big Sur, Catalina, Mojave, and High Sierra, for use with the macOS Installer. This is the simplest installation procedure that most users should follow after meeting the requirements listed below. Installers for legacy platforms Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard and Tiger are also available.
  • In source form as either a tar.bz2 package or a tar.gz one for manual compilation, if you intend to customize your installation in any way.
  • Git clone of the unpackaged sources, if you wish to follow MacPorts development.
  • The selfupdate target of the port(1) command, for users who already have MacPorts installed and wish to upgrade to a newer release.

Checksums for our packaged downloads are contained in the corresponding checksums file.

The public key to verify the detached GPG signatures can be found under the attachments section on jmr's wiki page. (Direct Link).

Please note that in order to install and run MacPorts on macOS, your system must have installations of the following components:

  1. Apple's Xcode Developer Tools (version 12.2 or later for Big Sur, 11.3 or later for Catalina, 10.0 or later for Mojave, 9.0 or later for High Sierra, 8.0 or later for Sierra, 7.0 or later for El Capitan, 6.1 or later for Yosemite, 5.0.1 or later for Mavericks, 4.4 or later for Mountain Lion, 4.1 or later for Lion, 3.2 or later for Snow Leopard, or 3.1 or later for Leopard), found at the Apple Developer site, on your Mac operating system installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your OS is highly recommended, except for Snow Leopard where the last free version, 3.2.6, is recommended.
  2. Apple's Command Line Developer Tools can be installed on recent OS versions by running this command in the Terminal:

    Older versions are found at the Apple Developer site, or they can be installed from within Xcode back to version 4. Users of Xcode 3 or earlier can install them by ensuring that the appropriate option(s) are selected at the time of Xcode's install ('UNIX Development', 'System Tools', 'Command Line Tools', or 'Command Line Support').

  3. Xcode 4 and later users need to first accept the Xcode EULA by either launching Xcode or running:
  4. (Optional) The X11 windowing environment for ports that depend on the functionality it provides to run. You have multiple choices for an X11 server:
    • Install the xorg-server port from MacPorts (recommended).
    • The XQuartz Project provides a complete X11 release for macOS including server and client libraries and applications. It has however not been updated since 2016.
    • Apple's X11.app is provided by the 'X11 User' package on older OS versions. It is always installed on Lion, and is an optional installation on your system CDs/DVD with previous OS versions.

macOS Package (.pkg) Installer

The easiest way to install MacPorts on a Mac is by downloading the pkg or dmg for Big Sur, Catalina, Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard or Tiger and running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.

This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage. If needed your shell configuration files will be adapted by the installer to include the necessary settings to run MacPorts and the programs it installs, but you may need to open a new shell for these changes to take effect.

The MacPorts 'selfupdate' command will also be run for you by the installer to ensure you have our latest available release and the latest revisions to the 'Portfiles' that contain the instructions employed in the building and installation of ports. After installation is done, it is recommended that you run this step manually on a regular basis to to keep your MacPorts system always current:

Xcode download

At this point you should be ready to enjoy MacPorts!

Type 'man port' at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.

Source Installation

If on the other hand you decide to install MacPorts from source, there are still a couple of things you will need to do after downloading the tarball before you can start installing ports, namely compiling and installing MacPorts itself:

  1. 'cd' into the directory where you downloaded the package and run 'tar xjvf MacPorts-2.6.4.tar.bz2' or 'tar xzvf MacPorts-2.6.4.tar.gz', depending on whether you downloaded the bz2 tarball or the gz one, respectively.
  2. Build and install the recently unpacked sources:
    • cd MacPorts-2.6.4
    • ./configure && make && sudo make install
    Optionally:
    • cd ./
    • rm -rf MacPorts-2.6.4*
Download

These steps need to be perfomed from an administrator account, for which 'sudo' will ask the password upon installation. This procedure will install a pristine MacPorts system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-2.6.4 source directory and corresponding tarball.

To customize your installation you should read the output of './configure --help | more' and pass the appropriate options for the settings you wish to tweak to the configuration script in the steps detailed above.

Xcode For Snow Leopard 10.6.8 Download

You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation prefix (the value passed to configure's --prefix flag, defaulting to /opt/local):

  • Add ${prefix}/bin and ${prefix}/sbin to the start of your PATH environment variable so that MacPorts-installed programs take precedence over system-provided programs of the same name.
  • If a standard MANPATH environment variable already exists (that is, one that doesn't contain any empty components), add the ${prefix}/share/man path to it so that MacPorts-installed man pages are found by your shell.
  • For Tiger and earlier only, add an appropriate X11 DISPLAY environment variable to run X11-dependent programs, as Leopard takes care of this requirement on its own.

Lastly, you need to synchronize your installation with the MacPorts rsync server:

Upon completion MacPorts will be ready to install ports!

It is recommended to run the above command on a regular basis to keep your installation current. Type 'man port' at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.

Git Sources

If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions, you may acquire the MacPorts sources through git. See the Guide section on installing from git.

Download Xcode 4.2 For Snow Leopard

Purpose-specific branches are also available at the https://github.com/macports/macports-base/branches url.

Free

Alternatively, if you'd simply like to view the git repository without checking it out, you can do so via the GitHub web interface.

Xcode download

Solution no. 8:

Apple had released the command line tool in Xcode 4.3.2 in late March 2012.

I found the item can be downloaded from AppStore in Mac or the download section of XCode.
GCC might be easier to get familier, and Apple version command line tool is fine to me.

Hope this helps!

Quickstart

Download Xcode For Snow Leopard Wallpaper

  1. Install Xcode and the Xcode Command Line Tools
  2. Agree to Xcode license in Terminal: sudo xcodebuild -license
  3. Install MacPorts for your version of the Mac operating system:

Installing MacPorts

MacPorts version 2.6.4 is available in various formats for download and installation (note, if you are upgrading to a new major release of macOS, see the migration info page):

  • 'pkg' installers for Big Sur, Catalina, Mojave, and High Sierra, for use with the macOS Installer. This is the simplest installation procedure that most users should follow after meeting the requirements listed below. Installers for legacy platforms Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard and Tiger are also available.
  • In source form as either a tar.bz2 package or a tar.gz one for manual compilation, if you intend to customize your installation in any way.
  • Git clone of the unpackaged sources, if you wish to follow MacPorts development.
  • The selfupdate target of the port(1) command, for users who already have MacPorts installed and wish to upgrade to a newer release.

Checksums for our packaged downloads are contained in the corresponding checksums file.

The public key to verify the detached GPG signatures can be found under the attachments section on jmr's wiki page. (Direct Link).

Please note that in order to install and run MacPorts on macOS, your system must have installations of the following components:

  1. Apple's Xcode Developer Tools (version 12.2 or later for Big Sur, 11.3 or later for Catalina, 10.0 or later for Mojave, 9.0 or later for High Sierra, 8.0 or later for Sierra, 7.0 or later for El Capitan, 6.1 or later for Yosemite, 5.0.1 or later for Mavericks, 4.4 or later for Mountain Lion, 4.1 or later for Lion, 3.2 or later for Snow Leopard, or 3.1 or later for Leopard), found at the Apple Developer site, on your Mac operating system installation CDs/DVD, or in the Mac App Store. Using the latest available version that will run on your OS is highly recommended, except for Snow Leopard where the last free version, 3.2.6, is recommended.
  2. Apple's Command Line Developer Tools can be installed on recent OS versions by running this command in the Terminal:

    Older versions are found at the Apple Developer site, or they can be installed from within Xcode back to version 4. Users of Xcode 3 or earlier can install them by ensuring that the appropriate option(s) are selected at the time of Xcode's install ('UNIX Development', 'System Tools', 'Command Line Tools', or 'Command Line Support').

  3. Xcode 4 and later users need to first accept the Xcode EULA by either launching Xcode or running:
  4. (Optional) The X11 windowing environment for ports that depend on the functionality it provides to run. You have multiple choices for an X11 server:
    • Install the xorg-server port from MacPorts (recommended).
    • The XQuartz Project provides a complete X11 release for macOS including server and client libraries and applications. It has however not been updated since 2016.
    • Apple's X11.app is provided by the 'X11 User' package on older OS versions. It is always installed on Lion, and is an optional installation on your system CDs/DVD with previous OS versions.

macOS Package (.pkg) Installer

The easiest way to install MacPorts on a Mac is by downloading the pkg or dmg for Big Sur, Catalina, Mojave, High Sierra, Sierra, El Capitan, Yosemite, Mavericks, Mountain Lion, Lion, Snow Leopard, Leopard or Tiger and running the system's Installer by double-clicking on the pkg contained therein, following the on-screen instructions until completion.

This procedure will place a fully-functional and default MacPorts installation on your host system, ready for usage. If needed your shell configuration files will be adapted by the installer to include the necessary settings to run MacPorts and the programs it installs, but you may need to open a new shell for these changes to take effect.

The MacPorts 'selfupdate' command will also be run for you by the installer to ensure you have our latest available release and the latest revisions to the 'Portfiles' that contain the instructions employed in the building and installation of ports. After installation is done, it is recommended that you run this step manually on a regular basis to to keep your MacPorts system always current:

At this point you should be ready to enjoy MacPorts!

Type 'man port' at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.

Source Installation

If on the other hand you decide to install MacPorts from source, there are still a couple of things you will need to do after downloading the tarball before you can start installing ports, namely compiling and installing MacPorts itself:

  1. 'cd' into the directory where you downloaded the package and run 'tar xjvf MacPorts-2.6.4.tar.bz2' or 'tar xzvf MacPorts-2.6.4.tar.gz', depending on whether you downloaded the bz2 tarball or the gz one, respectively.
  2. Build and install the recently unpacked sources:
    • cd MacPorts-2.6.4
    • ./configure && make && sudo make install
    Optionally:
    • cd ./
    • rm -rf MacPorts-2.6.4*

These steps need to be perfomed from an administrator account, for which 'sudo' will ask the password upon installation. This procedure will install a pristine MacPorts system and, if the optional steps are taken, remove the as of now unnecessary MacPorts-2.6.4 source directory and corresponding tarball.

To customize your installation you should read the output of './configure --help | more' and pass the appropriate options for the settings you wish to tweak to the configuration script in the steps detailed above.

Xcode For Snow Leopard 10.6.8 Download

You will need to manually adapt your shell's environment to work with MacPorts and your chosen installation prefix (the value passed to configure's --prefix flag, defaulting to /opt/local):

  • Add ${prefix}/bin and ${prefix}/sbin to the start of your PATH environment variable so that MacPorts-installed programs take precedence over system-provided programs of the same name.
  • If a standard MANPATH environment variable already exists (that is, one that doesn't contain any empty components), add the ${prefix}/share/man path to it so that MacPorts-installed man pages are found by your shell.
  • For Tiger and earlier only, add an appropriate X11 DISPLAY environment variable to run X11-dependent programs, as Leopard takes care of this requirement on its own.

Lastly, you need to synchronize your installation with the MacPorts rsync server:

Upon completion MacPorts will be ready to install ports!

It is recommended to run the above command on a regular basis to keep your installation current. Type 'man port' at the command line prompt and/or browse over to our Guide to find out more information about using MacPorts. Help is also available.

Git Sources

If you are developer or a user with a taste for the bleeding edge and wish for the latest changes and feature additions, you may acquire the MacPorts sources through git. See the Guide section on installing from git.

Download Xcode 4.2 For Snow Leopard

Purpose-specific branches are also available at the https://github.com/macports/macports-base/branches url.

Alternatively, if you'd simply like to view the git repository without checking it out, you can do so via the GitHub web interface.

Selfupdate

If you already have MacPorts installed and have no restrictions to use the rsync networking protocol (tcp port 873 by default), the easiest way to upgrade to our latest available release, 2.6.4, is by using the selfupdate target of the port(1) command. This will both update your ports tree (by performing a sync operation) and rebuild your current installation if it's outdated, preserving your customizations, if any.

Other Platforms

Running on platforms other than macOS is not the main focus of The MacPorts Project, so remaining cross-platform is not an actively-pursued development goal. Nevertheless, it is not an actively-discouraged goal either and as a result some experimental support does exist for other POSIX-compliant platforms such as *BSD and GNU/Linux.

The full list of requirements to run MacPorts on these other platforms is as follows (we assume you have the basics such as GCC and X11):

  • Tcl (8.4 or 8.5), with threads.
  • mtree for directory hierarchy.
  • rsync for syncing the ports.
  • cURL for downloading distfiles.
  • SQLite for the port registry.
  • GNUstep (Base), for Foundation (optional, can be disabled via configure args).
  • OpenSSL for signature verification, and optionally for checksums. libmd may be used instead for checksums.

Normally you must install from source or from an git checkout to run MacPorts on any of these platforms.

Help

Help on a wide variety of topics is also available in the project Guide and through our Trac portal should you run into any problems installing and/or using MacPorts. Of particular relevance are the installation & usage sections of the former and the FAQ section of the Wiki, where we keep track of questions frequently fielded on our mailing lists.

If any of these resources do not answer your questions or if you need any kind of extended support, there are many ways to contact us!





broken image