You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

2.5.1

These are instructions for building Python 2.5.1 for the various OSes supported.

tiger-i386-32bit

These instructions should be performed as the glastrm user on the machine bldmac01 (accessible only from within SLAC).

  1. Download Python 2.5.1 from http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tgz and save to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python if it doesn't already exist.
  2. Change directory to /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python
  3. Ungzip and Untar the file Python-2.5.1.tgz
  4. Change directory to Python-2.5.1
  5. Set the environment variable EXTRA_CFLAGS to "-fno-common"
  6. Execute ./configure --prefix /afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl2/gcc40 --enable-unicode=ucs2
  7. Edit the file Modules/Setup and uncomment lines 316, 322, 335, 337, and 345.
  8. Change line 335 in Modules/Setup to be "-ltk8.4 -ltcl8.4 \" (without quotes) and save/exit.
  9. Edit the file Modules/posixmodule.c and change lines 342 and 360 to "#ifdef _APPLE_" (without quotes) and save/exit.
  10. Execute make
  11. Execute make install
  • No labels