PCRaster 4.2 on Linux

Starting with PCRaster 4.2, we will no longer distribute compiled versions for Linux systems. At this time, users need to compile their own version. We strive to make that process straightforward, instructions for several distributions will be listed on this page.

We use $HOME/pcraster as exemplary install location. After a successful build you will need to add $HOME/pcraster/bin to your PATH environment variable and $HOME/pcraster/python to your PYTHONPATH environment variable to run the PCRaster applications. In case you opt for another location you need to adapt the CMAKE_INSTALL_PREFIX, PATH and PTYTHONPATH accordingly.

Debian Testing or Ubuntu 18.04 (Python 2.7)

$ sudo apt install cmake gcc g++ git libboost-all-dev libgdal-dev libncurses5-dev libpython-dev libqwt-qt5-dev libxerces-c-dev libxml2 libxml2-utils libxslt1-dev python-numpy qtbase5-dev python-docopt
$ wget http://pcraster.geo.uu.nl/pcraster/4.2.1/pcraster-4.2.1.tar.bz2
$ tar xf pcraster-4.2.1.tar.bz2 && cd pcraster-4.2.1
$ mkdir build && cd build
$ cmake -DFERN_BUILD_ALGORITHM:BOOL=TRUE -DCMAKE_INSTALL_PREFIX:PATH=$HOME/pcraster ..
$ cmake --build .
$ make install

Ubuntu 18.04 (Python 3)

$ sudo apt install cmake gcc g++ git qtbase5-dev libncurses5-dev libqwt-qt5-dev libxerces-c-dev libboost-all-dev libgdal-dev python3-numpy python3-docopt
$ wget http://pcraster.geo.uu.nl/pcraster/4.2.1/pcraster-4.2.1.tar.bz2
$ tar xf pcraster-4.2.1.tar.bz2 && cd pcraster-4.2.1
$ mkdir build && cd build
$ cmake -DFERN_BUILD_ALGORITHM:BOOL=TRUE -DCMAKE_INSTALL_PREFIX:PATH=$HOME/pcraster -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 ..
$ cmake --build .
$ make install