#! /bin/bash # This script automatically install openmpi-2.1.1 in the directory /share/apps/openmpi-2.1.1/gnu # execute this script as root mkdir /share/apps/configrepo cd /share/apps/configrepo wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/openmpi/openmpi-2.1.1.tgz tar -zxvf openmpi-2.1.1.tgz cd openmpi-2.1.1 ./configure --prefix=/share/apps/openmpi-2.1.1/gnu FC=gfortran CC=gcc F77=gfortran --disable-dlopen make make install