The build for the LSST software stack on Mac OS X 10.5 requires that the following software be installed on your Mac.

NOTE: MacOS X 10.5 (Leopard) and XCode 3.1.3 (the last XCode built for Leopard) are recommended for running the LSST stack, as of 2009-10-12. MacOS X 10.6 (Snow Leopard) is current, but the loader has a bug that make the LSST stack unusable and we do not yet know a workaround (though it may suffice to define environment variable MACOSX_DEPLOYMENT_TARGET=10.4 before building). Please do not try to install the stack on MacOS X 10.4.

1. You'll need X11 installed on your system. (This is for Tcl/Tk, which Python uses). The X11 install is on the system install disk for the Mac. Click on Optional installs, go through the Introduction and license agreement dialogs, and you'll find it under Applications.

2. Install  Xcode, including the X11 SDK (an optional component). XCode is a development environment that you can download for free from Apple's website.

In order to download the software, you must first join the  Apple Developer Connection which is also free of charge.

3. Verify that you have the X11 SDK installed (type the text after the $ and you should see the results shown on the next line):

$ ls /usr/X11R6/
bin	include	lib	man	share	var
$ ls /usr/X11R6/include/
GL		X11		cairo		fontconfig	freetype2	ft2build.h	libpng12	pixman-1	png.h		pngconf.h	xcb

If you are missing these files then:

  • Make sure you have the X11 application (in Applications)
  • Install X11 again: run the operating system installer and configure it to install X11. See if that fixed the problem (if it did, please email Russell Owen to update these instructions).
  • Run the XCode installer again and make sure you configure it to install the X11 SDK

4. Install a fortran compiler. The recommended choice is gfortran (more modern, easier to install and less intrusive) but you can use g77 if you prefer.

4.1  gfortran is the modern GNU fortran compiler. Download and run the Mac installer. Then set environment variable FC to gfortran.

4.2 If you prefer g77 for some reason then get  G77 3.4 the GNU Fortran 77 compiler. Download the appropriate software package for your Mac's architecture  g77 for PowerPC or  g77 for Intel.

Download the binaries, and cd to the download folder. Then gunzip g77-bin.tar.gz (if your browser didn't do so already) and run:

sudo tar -xvf g77-bin.tar -C /

This installs everything in /usr/local.

5. Add /usr/local/bin to your PATH (so the fortran compiler can be found)

At this point you can go to the  Getting Started page and follow those instructions to complete the build.

NOTE: The python that is installed has some issues. See Ticket #473 for a description of the problem and a workaround.

NOTE: For additional notes describing the install process on a fresh install of Leopard (OS 10.5.6), click  here.

NOTE: Additional notes on pitfalls and solutions when installing on 10.5 here.

NOTE: You can get away without a fortran compiler if you fiddle around with the mpich installation:

./configure --prefix=/u/lsst/products/DarwinX86/external/mpich2/1.0.5p4 --disable-f77 --disable-f90