Ubuntu/Debian installation

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:33, 1 May 2009
Popinet (Talk | contribs)
(Added instructions for public key signing of debian repository)
← Previous diff
Revision as of 20:28, 12 November 2012
Popinet (Talk | contribs)
(Added Ubuntu 12.10)
Next diff →
Line 1: Line 1:
-Ubuntu/Debian packages are built automatically every day (whenever a new [[snapshot release]] is available). A Debian repository is available on the Gerris web site. The first time you install Gerris you need to:+[http://packages.debian.org/search?keywords=gts&searchon=names&suite=all&section=all GTS] and [http://packages.debian.org/search?keywords=gerris&searchon=names&suite=all&section=all 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 [http://build.opensuse.org OpenSUSE build service] system. The first time you install Gerris you need to:
<ol> <ol>
-<li>Add the [http://gts.sf.net GTS] and Gerris debian repositories to your software sources+<li>Get the key:
<pre> <pre>
-% sudo -s+wget http://gerris.dalembert.upmc.fr/debian/popinet_key.asc
-% echo "deb http://gts.sourceforge.net/debian/ ./" >> /etc/apt/sources.list+sudo apt-key add popinet_key.asc
-% echo "deb http://gfs.sourceforge.net/debian/ ./" >> /etc/apt/sources.list+
-% exit+
</pre> </pre>
</li> </li>
-<li>Add the public signing key for these repositories to your list of trusted keys</li>+<li>Depending on your distribution, append the following lines to <code>/etc/apt/sources.list</code>
- % wget http://gfs.sf.net/debian/popinet_key.asc+<dl>
- % sudo apt-key add popinet_key.asc+<dt>Debian 6.0 ('squeeze')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/Debian_6.0 ./</nowiki></code></dd>
-<li>Update the contents of the package database+<dt>Debian 5.0 ('lenny')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/Debian_5.0 ./</nowiki></code></dd>
-<pre>+<dt>Ubuntu 12.10 ('Quantal Quetzal') and derivatives (Xubuntu, Kubuntu etc...)</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.10 ./</nowiki></code></dd>
-% sudo apt-get update+<dt>Ubuntu 12.04 ('precise pangolin')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.04 ./</nowiki></code></dd>
-</pre>+<dt>Ubuntu 11.10 ('oneiric ocelot')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_11.10 ./</nowiki></code></dd>
 +<dt>Ubuntu 11.04 ('natty narwhal')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_11.04 ./</nowiki></code></dd>
 +<dt>Ubuntu 10.10 ('maverick meerkat')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.10 ./</nowiki></code></dd>
 +<dt>Ubuntu 10.04 ('lucid lynx')</dt><dd><code><nowiki>deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.04 ./</nowiki></code></dd>
 +</dl>
</li> </li>
-<li>Install the Gerris and GfsView snapshots (and their dependencies)+<li>
-<pre>+For Ubuntu distributions you will also need to enable the 'universe' repository of Ubuntu. Either uncomment the corresponding line in <code>/etc/apt/sources.list</code> or use the graphical interface (e.g. "System -> Administration -> Synaptic Package Manager" and/or "System -> Administration -> Software Sources").
-% sudo apt-get install gerris-snapshot gfsview-snapshot+
-</pre>+
</li> </li>
-</ol>+<li>Update APT and install the packages:
- +<pre>
-Note that these steps can also be done using the graphical tools (e.g. "System -> Administration -> Synaptic Package Manager" and/or "System -> Administration -> Software Sources") in your Ubuntu/Debian desktop.+sudo apt-get update
 +sudo apt-get install {gerris,gfsview}-snapshot
 +</pre></li></ol>
Your Gerris installation will subsequently be upgraded to the most recent version whenever you run Your Gerris installation will subsequently be upgraded to the most recent version whenever you run
- % sudo apt-get dist-upgrade+ 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
-i.e. whenever your system updates are performed (again this will be done automatically when using the "Update manager" in Ubuntu/Debian).+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
-=== Note for installation on Ubuntu 8.04 ===+ sudo apt-get remove gfsview-snapshot
 + sudo dpkg -r *gtkgl*
 + sudo dpkg --purge *gtkgl*
-The debian packages for gerris-snapshot are built on an Ubuntu 7.10 system. To install them on an Ubuntu 8.04 system (Hardy Heron), the instructions above will work but you first need to download and install the following packages manually:+and then removing dependent packages that were automatically installed with
-http://packages.ubuntu.com/gutsy/libnetcdf3<br>+ sudo apt-get autoremove
-http://packages.ubuntu.com/gutsy/libgsl0+
-You can also alternatively [[Installing from source|install from source]].+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.

Revision as of 20:28, 12 November 2012

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 6.0 ('squeeze')
    deb http://download.opensuse.org/repositories/home:/popinet/Debian_6.0 ./
    Debian 5.0 ('lenny')
    deb http://download.opensuse.org/repositories/home:/popinet/Debian_5.0 ./
    Ubuntu 12.10 ('Quantal Quetzal') and derivatives (Xubuntu, Kubuntu etc...)
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.10 ./
    Ubuntu 12.04 ('precise pangolin')
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_12.04 ./
    Ubuntu 11.10 ('oneiric ocelot')
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_11.10 ./
    Ubuntu 11.04 ('natty narwhal')
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_11.04 ./
    Ubuntu 10.10 ('maverick meerkat')
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.10 ./
    Ubuntu 10.04 ('lucid lynx')
    deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.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.

Personal tools
communication