Skip to content
emolch edited this page Nov 24, 2011 · 34 revisions

Kiwi Compilation and Installation Guide

The Kiwi codes have so far been compiled on Linux and Mac OS X, but it should be possible to compile them on any UNIX system, where HDF5 and FFTW3 are available.

Prerequisites

  • A Fortran 95 compiler -- Most testing has been done with gfortran, g95, and ifort. The compiler must support allocatable derived type components, which is a Fortran 2003 feature. (Most Fortran 95 compilers support this however.)
  • HDF5 -- The Fortran bindings to HDF5 have to be compiled with the same compiler, as is used to compile the Kiwi tools. Sorry, this is a Fortran95 problem: .mod files are compiler specific. Usually something like the following succeeds, with the more recent versions of HDF5:
FC=g95 ./configure --enable-fortran --prefix=/somewhere/hdf5-g95
make
make install

# and if you want a second installation using a different compiler:

FC=ifort ./configure --enable-fortran --prefix=/somewhere/hdf5-ifort
make clean
make 
make install
  • FFTW3 -- The packages provided through the systems package manager will usually do fine (only Fortran77 is involved), but you have to install the headers as well as the libraries, so, for example on a Debian-based Linux system, you would install the packages fftw3 and fftw3-dev.

  • libmseed -- The simplest approach is to compile libmseed with 'make gcc' and then copy all its header files (*.h) to /usr/local/include and libmseed.a to /usr/local/lib.

Clone this wiki locally