#! /bin/bash # First run this script as user to install fftw 3.3.4 in ~/fftw-3.3.4. Then cd ~/configrepo/fftw-3.3.3 and type make as user, followed by 'make install' as SU, followed by makeinstallcheck as user. The last three steps are to be done manually. mkdir ~/configrepo cd ~/configrepo rm -rf fftw-3.3.4.tar.gz wget http://www2.fizik.usm.my/configrepo/howto/fftw/fftw-3.3.4.tar.gz gunzip fftw-3.3.4.tar.gz tar -xvf fftw-3.3.4.tar cd fftw-3.3.4 #./configure --with-g77-wrappers --enable-mpi --enable-threads --enable-openmp CXX="mpicxx" CC="mpicc" CPP="mpic++ -E" CXXCPP="mpicxx -E" FC='gfortran' --prefix=/share/apps/fftw-3.3.3/gnu ./configure --with-g77-wrappers --enable-mpi --enable-threads --enable-openmp CXX="icc" CC="icc" CPP="icc -E" CXXCPP="icc-E" FC='ifortran' --prefix=/share/apps/fftw-3.3.4/intel # make ## make check # as user ## make install #exectute this as su ## make installcheck #execute this as user