...
- Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/
- Unzip and change to the directory of the unpacked archive, E.g.,
- tar -zxvf Python-2.5.1.tgz
- cd Python-2.5.1
- 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/
- Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
- Enable zlib (Uncomment the line corresponding to "zlib")
- 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
- make
- make install
cfitsio v3060A (patch)
Windows operating system
- 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)
- Execute C:\Program Files\Microsoft Visual C++ Toolkit 2003\vcvars32.bat
- Go to start->Programs->Microsoft Visual Studio .NET 2003 ->Visual Studio .NET Tools
- Right-click "Visual Studio .NET 2003 Command Prompt"
- Edit the "Start in:" text box
- Enter the location of the unpacked cfitsio-v3.060A tar ball
- "V:/Glast_Software/Toaster/GLAST_EXT/VC8/cfitsio/v3060A/cfitsio-v3.060A/
- Now open the Visual Studio .NET 2003 Command Prompt
- Go to start->Programs->Microsoft Visual Studio .NET 2003 ->Visual Studio .NET Tools -> "Visual Studio .NET 2003 Command Prompt"
- Enter the following commands:
- nmake winDumpExts.mak
- nmake makefile.vcc
This creates the cfitsio.def, cfitsio.dll, and cfitsio.lib files. The fitsio.h and longnam.h files are also needed to compile any programs that use CFITSIO. To test that the library works correctly, enter:
Code Block |
---|
cl /MD testprog.c cfitsio.lib
testprog.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
NumPy
Windows operating system
...