#! /bin/bash # First run this script as user to install fftw 3.3.3 in ~/fftw-3.3.3/gny. 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.3.tar.gz wget http://www2.fizik.usm.my/configrepo/howto/fftw/fftw-3.3.3.tar.gz gunzip fftw-3.3.3.tar.gz tar -xvf fftw-3.3.3.tar cd fftw-3.3.3 ./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 make ## make check # as user ## make install #exectute this as su ## make installcheck #execute this as user