Python 2.5.1 (built against tcltk 8.4)
Windows operating system
- Download the appropriate python2.5.1 msi file for your windows architecture http://www.python.org/download/releases/2.5.1/
- Using command.exe, enter the following command
- if installing on a network drive (assuming that you are logged in on glast-win06)
- msiexec /a <python-msi-path>/python-2.5.1.msi ALLUSERS=1 TARGETDIR=<installation director
- Example, to install python in "V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vcc71" enter
- msiexec /a V:\Glast_Software\Toaster\GLAST_EXT\VC8\python\python-2.5.1.msi ALLUSERS=1 TARGETDIR="V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vcc71"
- Example, to install python in "V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vcc71" enter
- msiexec /a <python-msi-path>/python-2.5.1.msi ALLUSERS=1 TARGETDIR=<installation director
- if installing on a network drive (assuming that you are logged in on glast-win06)
Linux/Mac operating system
- 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/redhat4-i686-32bit/python/2.5.1-gl1/gcc34/
- 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 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
- 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:
- make clean
- setenv LD_RUN_PATH <Location of tcltk libraries>
- make
- make install
- unsetenv LD_RUN_PATH
NumPy
Windows operating system
* Do not attempt to use the Microsoft installer to install numPy. The problem is that you cannot easily specify which instance of Python that you want to install NumPy against. The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine.
- Download the source http://numpy.scipy.org/
- Unzip the contents of the tar.gz file
- move into the directory numpy-1.2.0 (or for whichever version you download)
- Run setup.py with the full path to the python executable for which you want to install numpy-1.2.0 against
- Example
- V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install
- Example
Linux/Mac operating system
- Download the source http://numpy.scipy.org/
- Extract the contents of the tar.gz file
- cd into the directory numpy-1.2.0
- Run setup.py with the python instance for which you want to install numpy-1.2.0 against
- Example
- */afs/slac/g/glast/ground/GLAST_EXT/*redhat4-i686-32bit/python/2.5.1-gl1/bin/python setup.py install
- Example
PyFITS
Windows operating system
Do not attempt to use the Microsoft installer to install PyFITS. The problem is that you cannot easily specify which instance of Python that you want to install PyFITS against, and you cannot specify the install location manually. The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine.
- Download the source http://www.stsci.edu/resources/software_hardware/pyfits/Download
- Unzip the contents of the tar.gz file
- move into the directory pyfits-1.3 (or for whichever version you download)
- Run setup.py with the full path to the python executable for which you want to install pyfits-1.3 against
- Example
- V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install
- Example
Linux/Mac operating system
- Download the source http://www.stsci.edu/resources/software_hardware/pyfits/Download
- Extract the contents of the tar.gz file
- cd into the directory pyfits-1.3
- Run setup.py with the python instance for which you want to install pyfits-1.3 against
- Example
- /afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit/python/2.5.1-gl1/bin/python setup.py install
- Example
4Suite-XML
Windows operating system
Do not attempt to use the Microsoft installer to install 4Suite-XML. The problem is that you cannot easily specify which instance of Python that you want to install 4Suite-XML against, and you cannot specify the install location manually. The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine.
- Download the source http://4suite.org/index.xhtml
- Unzip the contents of the tar.gz file
- move into the directory 4Suite-XML-1.0.2 (or for whichever version you download)
- Run setup.py with the full path to the python executable for which you want to install 4Suite-XML-1.0.2 against
- Example
- V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install
- Example
Linux/Mac operating system
- Download the source http://ipython.scipy.org/moin/Download
- Extract the contents of the tar.gz file
- cd into the directory 4Suite-XML-1.0.2
- Run setup.py with the python instance for which you want to install 4Suite-XML-1.0.2 against, and specify the "config --home" option to point to the installation directory of Python
- Example
- /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/python/2.5.1-gl1/gcc32/bin/python setup.py config --home=/afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/python/2.5.1-gl1/gcc32
- Example
- Run "setup.py install" with the python instance for which you want to install 4Suite-XML-1.0.2 against
- #** /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/python/2.5.1-gl1/gcc32/bin/python setup.py install
IPython
Linux/Mac operating system
- Download the source http://4suite.org/index.xhtml
- Extract the contents of the tar.gz file
- cd into the directory, "ipython"
- Run setup.py with the python instance for which you want to install IPython
- Example
- /afs/slac/g/glast/ground/GLAST_EXT/rh9_gcc32/python/2.5.1-gl1/gcc32/bin/python setup.py install
- Example
OmniOrb
http://confluence.slac.stanford.edu/display/SAS/Building+omniORB+for+GLAST
Update (by Emmanuel Cephas)
- Installed OmniOrb 4.1.2 at SLAC for rh9_gcc32 and the rhel4 machines
- The OmniOrb 4.1.2 directory structure is consistent with the convention for SCons (replace rh9_gcc32 with rhel4_gcc34 or redhat4-i686-32bit for the rhel4 machines)
- .../GLAST_EXT/rh9_gcc32/OmniOrb/4.1.2/gcc32/lib
- .../GLAST_EXT/rh9_gcc32/OmniOrb/4.1.2/gcc32/include
- etc..
- The OmniOrb 4.1.2 directory structure is consistent with the convention for SCons (replace rh9_gcc32 with rhel4_gcc34 or redhat4-i686-32bit for the rhel4 machines)
- Regenerated the following HepRepCorba files with omniidl (SEE http://confluence.slac.stanford.edu/display/SAS/Building+omniORB+for+GLAST) and committed them to CVS:
- HepRHepEventServer.hh and HepEventServerSK.cc
- HepEventServer.hh and HepEventServerSK.cc
- Testing has commenced. Heather is testing OmniOrb against a locally modifed OmniOrb CMT requirements file (which points to the 4.1.2 version of OmniOrb with the new directory structure)