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

cmake

required; used to configure PISM

g++

required; used to build PISM

git

required; used to download PISM’s source code

libfftw3-dev

required by PISM

libgsl-dev

required by PISM

libnetcdf-dev

required by PISM

libudunits2-dev

required by PISM

netcdf-bin

required; ncgen is used during the build process

petsc-dev

required by PISM

cdo

optional; used in some pre-processing scripts

cmake-curses-gui

optional; a text-based interface for CMake

libpnetcdf-dev

optional; used for parallel I/O

libproj-dev

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

libx11-dev

optional; used by PISM’s run-time viewers

nco

optional; used in many pre-processing scripts

ncview

optional; a nice tool for examining NetCDF datasets

python3-dev

optional; used by PISM’s Python bindings

python3-netcdf4

optional; used in most post-processing scripts

python3-nose

optional; used by PISM’s regression tests

python3-numpy

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

python3-pyproj

optional; used in some pre-processing scripts

python3-scipy

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

swig

optional; used to build PISM’s Python bindings

You may be able to install these by running

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

Click here to download this file.

(You may need to add sudo or 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