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/redhat4-i686-32bit/python/2.5.1-gl1/gcc34/
  4. Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
  5. Enable zlib (Uncomment the line corresponding to "zlib")
  6. 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 following 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, example
      • "-L/afs/slac.stanford.edu/g/glast/applications/heasoft/PROD/tcltk/i686-pc-linux-gnu-libc2.3.2/lib"
    • Uncomment and edit to reflect where your Tcl/Tk headers are
    • Uncomment and edit to reflect your Tcl/Tk versions are
  7. Run
    • *make
    • make install

 
*While running "make", if you run into any compiler problems finding tcl8.4 or tk8.4 libraries, try setting the environment variable, LD_RUN_PATH to point to the location of the tcltk libraries:

  1.  
  1. make clean
  2. setenv LD_RUN_PATH <Location of tcltk libraries>
  3. make
  4. make install
  5. unsetenv LD_RUN_PATH

...