#! /bin/bash ## Install openmpi-1.8.5 ## Default location is dir=$HOME/ii ## Execute this in $dir/script/ HOME=/home/$(whoami) dir=$HOME/ii export dir=/home/$(whoami)/ii cd $dir if [ -d $dir/configrepo ]; then echo "$dir/configrepo" existed else mkdir $dir/configrepo fi cd $dir/configrepo rm -rf openmpi-1.8.5.tar.gz wget http://www2.fizik.usm.my/configrepo/howto/openmpi/openmpi-1.8.5.tar.gz tar -zxvf openmpi-1.8.5.tar.gz cd openmpi-1.8.5 ./configure --prefix=$dir/openmpi-1.8.5 --disable-dlopen make make install