Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/
  2. Unzip and change to the directory of the unpacked archive, E.g.,
    • tar -zxvf  Python-2.5.1.tgz
    • cd Python-2.5.1
  3. Run, "./configure --prefix=<installation directory>," E.g.,
    • ./configure --prefix=/afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl1/gcc40/
  4. Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
    1. Enable zlib (Uncomment the line corresponding to "zlib")
    2. To build Python against tcltck 8.4, there are three lines to edit in the file (I would suggest searching for "_tkinter" in the Modules/Setup file, then follow the documentation)
      • Enable tkinter, by Uncommenting the line "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT "
      • Uncomment and edit to reflect where your Tcl/Tk libraries are (/usr/lib)
        • -L/usr/lib
      • Uncomment and edit to reflect where your Tcl/Tk headers are (/usr/include)
        • -I/usr/include
      • Uncomment and edit to reflect your Tcl/Tk versions are
      • Run
        1. make
        2. make install

...

cfitsio v3060A (patch)

Windows operating system

  1. Unpack the CFITSIO source files into a V:/Glast_Software/Toaster/GLAST_EXT/VC8/cfitsio/v3060A/cfitsio-v3.060A/ (or the location where you want to install)
  2. Execute C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat
  3. Go to start->Programs->Microsoft Visual Studio .NET 2003 ->Visual Studio .NET Tools
  4. Right-click "Visual Studio .NET 2003 Command Prompt"
  5. Edit the "Start in:" text box
    1. Enter the location of the unpacked cfitsio-v3.060A tar ball
      1. "V:/Glast_Software/Toaster/GLAST_EXT/VC8/cfitsio/v3060A/cfitsio-v3.060A/
    2. Now open the Visual Studio .NET 2003 Command Prompt
  1. Go to start->Programs->Microsoft Visual Studio .NET 2003 ->Visual Studio .NET Tools -> "Visual Studio .NET 2003 Command Prompt"
  2. Enter the following commands:
    1. nmake winDumpExts.mak
    2. nmake makefile.vcc

...

Code Block
cl /MD testprog.c cfitsio.lib       lib
testprog.exe  exe

The testprog program prints out a long list of diagnostic messages that should end with "Status = 0; OK - no error"

Installed in V:\Glast_Software\Toaster\GLAST_EXT\VC8\cfitsio\v3060A

Linux OS

  1. Get the source from /nfs/farm/g/glast/u05/extlib/cfitsio/cfitsio-v3.060A-src.tar.gz
  2. Unzip in temporary directory
  3. cd into that directory
  4. Run the following (for a shared library, instead of running "make," run, "make shared")
    Code Block
    
     ./configure --prefix=<installation directory>
    make
    make install
    
    Mac OS

*Note:  Make sure you do the build from bldmac01 or bldmac02 (Intel processors).

After you unzip the file, if the OS is Mac-9 or earlier, refer to the file README.MacOs (located in the directory with unpacked contents of cfitsio, "cfitsio-v3.060A").

Follow the same directions for the Linux OS for Mac OS X or greater. The <installation directory> is /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/tiger-i386-32bit/cfitsio/v3060A/gcc40.

...

NumPy

Windows operating system 

...