Installing prerequisites on Debian or Ubuntu

You should be able to use your package manager to get the prerequisites for PISM. Install the following packages using apt-get or synaptic or similar. All of these are recommended as they satisfy requirements for building or running PISM.

Table 3 Debian packages

Name

Comment

git

used to download PISM’s source code

cmake

used to configure PISM

cmake-curses-gui

optional; a text-based interface for CMake

g++

used to build PISM

netcdf-bin

ncgen is used during the build process

swig

optional; used to build PISM’s Python bindings

petsc-dev

required by PISM

libgsl-dev

required by PISM

libnetcdf-dev

required by PISM

libfftw3-dev

required by PISM

libudunits2-dev

required by PISM

libproj-dev

optional; used to compute longitude and latitude coordinates of grid points

libpnetcdf-dev

optional; used for parallel I/O

python-petsc4py

optional; used by PISM’s Python bindings

python-netcdf4

optional; used in most post-processing scripts

python-numpy

optional; used in some pre- and post-processing scripts

python-scipy

optional; used in some pre- and post-processing scripts

python-nose

optional; used by PISM’s regression tests

nco

optional; used in many pre-processing scripts

cdo

optional; used in some pre-processing scripts

ncview

optional; a nice tool for examining NetCDF datasets

python-pyproj

optional; used in some pre-processing scripts

libx11-dev

optional; used by PISM’s run-time viewers

You may be able to install these by running

sudo apt-get install -y git cmake cmake-curses-gui g++ netcdf-bin swig petsc-dev libgsl-dev libnetcdf-dev libfftw3-dev libudunits2-dev libproj-dev libpnetcdf-dev python-petsc4py python-netcdf4 python-numpy python-scipy python-nose nco cdo ncview python-pyproj libx11-dev

Click here to download this file.

(You may need to change this command to match your package system.)

The command above takes care of all PISM prerequisites, including PETSc. Set PETSC_DIR=/usr/lib/petsc1 and follow the steps in Building PISM to build PISM itself.

Footnotes

1

In this case you do not need to set PETSC_ARCH.


Previous Up Next