To configure and build GEOS you will need the following tools available on your system.
List of prerequisites
CMake build system generator (3.17+).
python (2.7+ or 3.6+).
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):
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:
Then load the appropriate modules using
module load command.
Please contact your system administrator if you need help choosing or installing appropriate modules.