Ubuntu/Debian installation

From Gerris

Jump to: navigation, search

GTS and Gerris Debian packages are part of official Debian distributions (as well as their derivatives such as Ubuntu distributions in the 'universe' repository). Note that GfsView is not packaged by Debian yet. These 'official' packages are usually based on slightly older (~6 months) releases of Gerris.

For fresher releases, Debian packages are built automatically every day (whenever a new snapshot release is available) using the nice OpenSUSE build service system. The first time you install Gerris you need to:

  1. Get the key:
    wget http://gerris.dalembert.upmc.fr/debian/popinet_key.asc
    sudo apt-key add popinet_key.asc
    
  2. Depending on your distribution, append the following lines to /etc/apt/sources.list
    Debian 8.0
    deb http://download.opensuse.org/repositories/home:/popinet/Debian_8.0 ./
    Debian 7.0
    deb http://download.opensuse.org/repositories/home:/popinet/Debian_7.0 ./
    Ubuntu 16.10
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_16.10 ./
    Ubuntu 16.04
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_16.04 ./
    Ubuntu 12.04
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.04 ./
  3. For Ubuntu distributions you will also need to enable the 'universe' repository of Ubuntu. Either uncomment the corresponding line in /etc/apt/sources.list or use the graphical interface (e.g. "System -> Administration -> Synaptic Package Manager" and/or "System -> Administration -> Software Sources").
  4. Update APT and install the packages:
    sudo apt-get update
    sudo apt-get install {gerris,gfsview}-snapshot
    

Your Gerris installation will subsequently be upgraded to the most recent version whenever you run

sudo apt-get update
sudo apt-get dist-upgrade

i.e. whenever your system updates are performed (this will also be done automatically when using the "Update manager" in Ubuntu/Debian).

Known issue with gfsview installation

If you receive the error message

gfsview3D: symbol lookup error: /usr/local/lib/libgtkglext-x11-1.0.so.0: undefined symbol: GTK_WIDGET_NO_WINDOW

when trying to open gfsview, you probably have too many gtkgl packages installed. This can be fixed by uninstalling gfsview and removing the gtkgl packages with the commands

sudo apt-get remove gfsview-snapshot
sudo dpkg -r *gtkgl*
sudo dpkg --purge *gtkgl*

and then removing dependent packages that were automatically installed with

sudo apt-get autoremove

Note that removing the *gtkgl* packages alone does not fix the problem; the autoremove command is necessary. After reinstalling gfsview, the error message should no longer appear.

Views
Navigation
communication