#! /bin/bash #This script compile and install fftw 3.1.2 for a a Linux host in /usr/local/fftw3. Run this script as root # assuming mpiifort is already installed # Check whether mpif90 is installed by issuing 'mpif90 -v' # Typical output will be like mpif90 for MPICH2 version 1.4.1p1 mkdir ~/configrepo mkdir ~/configrepo/fftw312 cd ~/configrepo/fftw312 #rm fftw-3.1.2.tar.gz wget http://www2.fizik.usm.my/configrepo/howto/fftw/fftw-3.1.2.tar.gz gunzip fftw-3.1.2.tar.gz tar -xvf fftw-3.1.2.tar cd fftw-3.1.2 export CC="gcc" export F77="f77 -m32" ./configure --with-g77-wrappers --enable-mpi --enable-threads --enable-openmp CC="gcc" FC="mpif90" --prefix=/usr/local/fftw3 make make install ## the fftw3-2-1 lib is now be found in /usr/local/fftw3/lib and the include file is found in /usr/local/fftw3/include/