The CentOS 5 system configured for this course does not include the necessary C++ compiler. It is also missing several key libraries. The instructions below will configure a new AWS Centos 5 image to allow for this project to be compiled. To run the application on an machine already set up, skip to Execution instructions.
cd /etc/yum.repos.d/
wget -O /etc/yum.repos.d/slc5-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc5-devtoolset.repo
yum install --nogpgcheck devtoolset-2
scl enable devtoolset-2 bash
If there are errors relating to GPG keys, then edit the /etc/yum.repos.d/slc5-devtoolset.repo file. Switch all the gpgcheck values to 0.
The version of GMP available through yum is not recent enough. Download and extract a more recent version to the home directory. Compile as follows:
./configure --enable-cxx --prefix=$HOME/gmplib
make install
scl enable devtoolset-2 bash
cd /home/cluster/parallel_lab2
make divisors_app_aws
su cluster
cd ~/parallel_lab2
Note, a valid hostname file is required in the directory below (..) the project directory.
The LD_LIBRARY_PATH environment variable must include a reference to the custom gmp install.
export LD_LIBRARY_PATH=$HOME/gmplib/lib:$LD_LIBRARY_PATH
bash ./tests/mw_test.sh