System prerequisites

To configure and build GEOS you will need the following tools available on your system.

List of prerequisites

Minimal requirements:

  • CMake build system generator (3.17+).

  • build tools (GNU make or ninja on Linux, XCode on MacOS).

  • a C++ compiler with full c++17 standard support (gcc 8.3+ or clang 10.0+ are recommended).

  • python (2.7+ or 3.6+).

  • zlib, blas and lapack libraries

  • any compatible MPI runtime and compilers (if building with MPI)

If you want to build from a repository check out (instead of a release tarball):

  • git (2.20+ is tested, but most versions should work fine)

If you plan on building bundled third-party library (TPLs) dependencies yourself:

  • Compatible C and Fortran compilers

If you will be checking out and running integrated tests (a submodule of GEOS, currently not publicly available):

If you are interested in building Doxygen documentation:

In order for XML validation to work (executed as an optional build step):

Installing prerequisites

On a local development machine with sudo/root privileges, most of these dependencies can be installed with a system package manager. For example, on a Debian-based system (check your package manager for specific package names):

sudo apt install build-essential git git-lfs gcc g++ gfortran cmake libopenmpi-dev libblas-dev liblapack-dev zlib1g-dev python3 python3-h5py python3-mpi4py libxml2-utils

On HPC systems it is typical for these tools to be installed by system administrators and provided via modules. To list available modules, type:

module avail

Then load the appropriate modules using module load command. Please contact your system administrator if you need help choosing or installing appropriate modules.