Gerris works fine on Snow Leopard. In you're using gfortran AND if you migrated your old data (from Leopard or Tiger), just take care to [http://hpc.sourceforge.net/ update your gfortran installation]. The compilation of gfs and gerris should not be a problem. [[User:arnaud.antkowiak | I]] had a little more trouble installing gfsview. Though the compilation went fine, gfsview kept crashing using GTK. For [[User:arnaud.antkowiak | me]], the workaround was to uninstall gtkglext and mesa (macports) packages. Then [[User:arnaud.antkowiak | I]] had to recompile gtkglext [http://gtkglext.sourceforge.net/ from the sources]:

+

Gerris works fine on Snow Leopard. In you're using gfortran AND if you migrated your old data (from Leopard or Tiger), just take care to [http://hpc.sourceforge.net/ update your gfortran installation].

+

As of Apr 16, 2011, the standard way to install is using MacPorts. If you had fink previously installed

+

and wish to use MacPorts you should uninstall the fink stuff, remove the /sw library and modify the environment

Check that you have Apple's X11 and the X11 SDK installed. They are not installed by default on a new machine (at least as far as I could figure out). If X11 is not installed, in OS X 10.4 you need to reinstall your system from the DVD (See here). Reinstalling the system will not remove your user files. (For comparison, on my system, the versions were X11 1.1.3 - XFree86 4.4.0 .)

Other packages may also be necessary. Look at the error messages during the configuration steps below to see what packages may be missing. Then the best way to resolve the problem may be to install "fink commander". Then search for all the packages that have a name beginning with pango, gtk+, atk1 and install all of them. Trial and error should eventually lead you to a full installation of all the necessary packages.

Install darcs (needed to obtain the latest version of Gerris, GTS, and GfsView - the packaged versions available on the web do not work). Darcs is not available in Fink either.

From the DMG, put the 'darcs' executable wherever you wish (e.g. /usr/local/bin).

From a suitable folder, obtain the latest versions of GTS, Gerris, and GfsView.

darcs get http://patch-tag.com/r/popinet/gerris-stable
darcs get http://gts.sf.net/darcs/gts-mainline
darcs get http://patch-tag.com/r/popinet/gfsview-stable

We will install these in /opt/gerris to keep them isolated from the rest of the system. This requires /opt/gerris/lib/pkgconfig to be added to your PKG_CONFIG_PATH. This directory does not exist yet - it will be created in the next step.

Mac OS X 10.6 Snow Leopard (Intel) Installation

Gerris works fine on Snow Leopard. In you're using gfortran AND if you migrated your old data (from Leopard or Tiger), just take care to update your gfortran installation.
As of Apr 16, 2011, the standard way to install is using MacPorts. If you had fink previously installed
and wish to use MacPorts you should uninstall the fink stuff, remove the /sw library and modify the environment
variables accordingly.

Be careful that the ACLOCAL path is set like:

export ACLOCAL_FLAGS="-I/opt/local/share/aclocal $ACLOCAL_FLAGS"

You should also take care to avoid conflicts with libraries that may have been installed elsewhere.
One way to avoid the conflicts is to set the MacPorts library first in the PKG_CONFIG_PATH variable.

The Gerris configure will read this variable and get the right MacPort libraries.
There is in fact a whole lot of other environment variables that should be set to use with MacPorts
to paths starting with /opt/local, read the MacPorts documentation.

libtool: Version mismatch error. This is libtool 2.2.4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4
libtool: and run autoconf again.

uninstall the libtool port:

sudo port uninstall libtool

and rerun the installation starting with

sh autogen.sh --prefix=/opt/gerris

This should take you through gerris installation. The gfsview installation proceeds in a similar way.

There were difficulties in the past with gfsview installation because of conflicts with gtk2 and gtkglext
packages, but as of Apr 16, 2011 the MacPorts packages are working fine.

See the discussion page for a record of these problems and how they were solved.

X11 on MacBook: you need a three-button mouse or trackpad emulation

You need either to connect a three-button mouse to your Mac or have the middle and right-click
functions of a mouse emulated on the trackpad. Go into the X11 application (it can be reached inside your Dock) then under the X11 menu go into "Preferences" and select "emulate a three button mouse".

Then press the "Command" (cmd) key and move ONE finger on the trackpad to emulate the right-click on the mouse and
move around the gfs view. Press the "Command" (cmd) key and move TWO fingers on the trackpad to emulate the center-click on the mouse or the scrolling, to zoom in and outthese pretty gfsview
images ... . There is no need to click on the trackpad.