#! /bin/bash # run this script as su to install fftw 3.3.6 in /share/apps/fftw-3.3.6/gnu # mandatory requiremnt: openmpi-3.1.2 is already installed in /share/apps/openmpi-3.1.2/gnu/ cd /share/apps/configrepo wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/fftw/fftw-3.3.6.tgz tar -zxvf fftw-3.3.6.tgz cd fftw-3.3.6-pl2 ./configure --with-g77-wrappers --enable-mpi --enable-threads --enable-openmp CXX="/share/apps/openmpi-3.1.2/gnu/bin/mpicxx" CC="/share/apps/openmpi-3.1.2/gnu/bin/mpicc" CPP="/share/apps/openmpi-3.1.2/gnu/bin/mpic++ -E" CXXCPP="/share/apps/openmpi-3.1.2/gnu/bin/mpicxx -E" FC='gfortran' --prefix=/share/apps/fftw-3.3.6/gnu make ## make check # as user make install #exectute this as su ## make installcheck #execute this as user