#! /bin/bash # This script install mpich2 in the frontend of a Rocks Linux cluster in /share/apps # Prerequisite: ifort and icc must have already been intalled. # 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 ~/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/intel FC=ifort CC=icc 2>&1 | tee c.txt make 2>&1 | tee m.txt # make install 2>&1 | tee mi.txt