-
Notifications
You must be signed in to change notification settings - Fork 308
centos 5.4
Below are pseudo-instructions for creating a CentOS-based (5.4) StarCluster AMI from scratch (thanks to Dan Yamins):
-
Launch a Rightscale CentOS 5.4 AMI 32bit: (ami-f8b35e91, 64bit: ami-ccb35ea5)
-
The mirror that yum plugin "fastestmirror" chooses by default is incredibly slow. Run the following command to recalculate fastestmirrors:
rm /var/cache/yum/timedhosts.txt
-
If needed, edit the "exclude" variable to keep a slow mirror from always being selected by the fastestmirrors check:
vi /etc/yum/pluginconf.d/fastestmirror.conf
-
Fetch the latest packages from yum mirror:
$ yum update
-
Remove g77 to prevent the presence of both gfortran and g77 fortran compilers from confusing the Numpy/Scipy installation process:
$ yum remove g77
-
Install the following packages:
$ yum install openmpi-devel nfs-utils-lib-devel java-1.6.0-openjdk-devel \ tmux zsh ksh csh tcsh unzip mysql-servet mysql httpd emacs ntsysv
Download SGE from the existing ubuntu image for starcluster e.g. scp the entire /opt/sge6-fresh from the ubuntu starcluster base image directly to the same location on the centos machine
We need to install python2.6 to an isolated location (e.g. /opt) so it does not interfere with the system python that is used by RHEL/Centos in the yum system.
-
Install dev headers that are necessary for python:
$ yum install bz2 curses sqlite zlib jpeg freetype2
-
Install Python by hand to the /opt location using instructions on the python homepage
-
Upgrade the version of cURL by hand to 7.21, downloading it from the cURL website and following instructions.
-
Install python setuptools and pip with the new /opt/bin/python
-
Install pycurl using the python setup.py install process by hand
-
Install python libraries:
$ /opt/bin/pip install mercurial ipython imaging boto virtualenv cython \ profiler multiprocessing-dbg ctypes nose
-
Add David Ashgiabou's RHEL repo to your repos, as described in the Installing Scipy on Linux guide.
-
Install lapack and atlas:
$ yum install blas-devel lapack-devel atlas-devel
-
Install FFTW and UMFPACK using exactly the same instructions as in the [[ Ubuntu 9.10 AMI Cookbook | ubuntu-9.10 ]]
-
Download NumPy and SciPy source files and do the usual:
python setup.py install
-
Then run python nosetests in both the NumPy and SciPy source directories and make sure all finishes OK