#! /bin/bash # This script automatically install openmpi-3.1.2 in the directory /share/apps/openmpi-3.1.2/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-3.1.2.tgz tar -zxvf openmpi-3.1.2.tgz cd openmpi-3.1.2 ./configure --prefix=/share/apps/openmpi-3.1.2/gnu --disable-dlopen make make install