#! /bin/bash # This script install mpich2 in the frontend of a Rocks Linux cluster in /share/apps/mpich2/3.1.4/gcc # gcc compilers are to be used # Procedure: Run this script as an user first, then cd ~/configrepo/mpich-3.1.4, as SU, make install 2>&1 | tee mi.txt #mkdir /share/apps/ins_mpich2 #mkdir ~/configrepo cd /share/apps/configrepo wget http://www2.fizik.usm.my/configrepo/howto/mpich2/mpich-3.1.4.tar.gz tar -zxvf mpich-3.1.4.tar.gz cd mpich-3.1.4 ./configure --prefix=/share/apps/mpich2/3.1.4/gcc FC=gfortran CC=cc 2>&1 | tee c.txt #use this if possible. Else use the next with with disabled cxx #./configure --prefix=/share/apps/mpich2/3.1.4/gcc FC=gfortran CC=icc --disable-cxx 2>&1 | tee c.txt make 2>&1 | tee m.txt make install 2>&1 | tee mi.txt