#! /bin/bash ## run this script as su to install three numerical python packages: numpy, scipy and mathplotlib. They must be installed in sequence. Must be issued as SU. ### Lapack and Blas and ATLAS are assumed to have been installed in existing Linux. ### WARNING: IF LAPACK, ATLAS, BLAS ARE COMPILED USING GNU, THEN THE NUMPY PACKAGES MUST ALSO BE COMPILED WITH GNU ALSO. IF LAPACK/BLAS/ATLAS ARE COMPILED USING GFORTRAN, THEN THE NUMPY PACKAGES MUST ALSO BE COMPILED WITH GFORTRAN. IF BOTH ARE COMPILED USING DIFFERENT COMPILER, SUGGEST TO UNINSTALL BLAS/LAPACK/ATLAS, AND REISNTALL THEM USING THE GNU COMPILER. (hope that you never need to do that) # By default, the numpy are to be compiled using gnu whenever possible. mdkir /root/configrepo cd /root/configrepo # 1) intalling numpy: wget http://www2.fizik.usm.my/configrepo/howto/numpy/numpy-1.4.1.tar.gz tar -zxvf numpy-1.4.1.tar.gz cd numpy-1.4.1 python setup.py build --fcompiler=gnu python setup.py install # 2) installing scipy wget http://www2.fizik.usm.my/configrepo/howto/numpy/scipy-0.7.2.tar.gz tar -zxvf scipy-0.7.2.tar.gz cd scipy-0.7.2 python setup.py config_fc --fcompiler=gnu install # To Test if scipy works, run the following script manually. # cd /root/configrepo # python # >>> import scipy # >>> scipy.test('full') #3) For matplotlib-0.99.1.1 wget http://www2.fizik.usm.my/configrepo/howto/numpy/matplotlib-0.99.1.2.tar.gz tar -zxvf cd matplotlib-0.99.1.1 python setup.py build python setup.py install