Installing from source
The Gerris environment consists of two main parts: the Gerris solver itself and the visualisation application GfsView. The Gerris solver does not need interactive display and can run purely in terminal mode. This is useful when running applications on supercomputing systems which are often used in "batch mode".
The Gerris solver depends on the GTS library for geometrical operations and object-oriented programming. The GTS library in turns depends on the Glib library, a set of useful extensions for C programming. Glib is installed as part of the standard installation on many Linux systems, however the corresponding development files (library header files etc...) usually need to be installed explicitly.
Installing the glib development files
To check whether you already have the development files for glib on your system do:
% pkg-config glib-2.0 --modversion
If the development files are installed you will get something like:
i.e. the installed version number of glib. Otherwise, you will need to install the development files first. It is most easily done by using the packaging system of your linux distribution. For example on a debian-based distribution just type:
% sudo apt-get install libglib2.0-dev
RPM-based distributions (Red Hat, Fedora, Suse etc...) will have similar tools but the package name may be different.