Mac OSX Installation
From Gerris
(Difference between revisions)
| Revision as of 22:34, 28 October 2007 Zaleski (Talk | contribs) (updated number of succesful edits) ← Previous diff |
Revision as of 10:45, 8 November 2007 Zaleski (Talk | contribs) (Modified the glib dependency as glib2-dev seems necessary. Added a warning about automake.) Next diff → |
||
| Line 6: | Line 6: | ||
| <li>Install various dependencies that Gerris requires. | <li>Install various dependencies that Gerris requires. | ||
| <pre> | <pre> | ||
| - | sudo fink install pkgconfig glib gtk+2 gtk+2-dev \ | + | sudo fink install pkgconfig glib2 glib2-dev glib2-shlibs gtk+2 gtk+2-dev \ |
| gtkglext1 startup-notification-dev \ | gtkglext1 startup-notification-dev \ | ||
| startup-notification-shlibs | startup-notification-shlibs | ||
| Line 31: | Line 31: | ||
| echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gerris/lib/pkgconfig" >> ~/.profile | echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gerris/lib/pkgconfig" >> ~/.profile | ||
| </pre></li> | </pre></li> | ||
| + | <li> Check your version of automake. Currently (November 8, 2007) this installation procedure works with automake 1.6.3 which is | ||
| + | on your system by default. Delete any more recent packages. In the future, more recent packages may be needed. | ||
| <li>Compile and install GTS, Gerris and GfsView. | <li>Compile and install GTS, Gerris and GfsView. | ||
| <pre> | <pre> | ||
Revision as of 10:45, 8 November 2007
OS X 10.4 (Intel) Installation
Below are steps that have worked for at least two people, installing Gerris under Mac OS X 10.4 (Intel).
- Install Fink (http://finkproject.org). You will need the Apple development tools installed - this is a free download from http://developer.apple.com/tools/.
- Install various dependencies that Gerris requires.
sudo fink install pkgconfig glib2 glib2-dev glib2-shlibs gtk+2 gtk+2-dev \ gtkglext1 startup-notification-dev \ startup-notification-shlibs - 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.
- Download the DMG from http://glozer.net/darcs/, and mount it.
- From the DMG, Drag GMP.Framework into /Library/Frameworks.
- 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://gfs.sf.net/darcs/gerris/gerris-stable darcs get http://gts.sf.net/darcs/gts-mainline darcs get http://gfs.sourceforge.net/darcs/gfsview/gfsview-mainline
- 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.
echo "export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gerris/lib/pkgconfig" >> ~/.profile
- Check your version of automake. Currently (November 8, 2007) this installation procedure works with automake 1.6.3 which is
on your system by default. Delete any more recent packages. In the future, more recent packages may be needed.
<li>Compile and install GTS, Gerris and GfsView.
cd gts-mainline sh autogen.sh --prefix=/opt/gerris make && make install cd ../gerris-stable sh autogen.sh --prefix=/opt/gerris make && make install cd ../gfsview-mainline sh autogen.sh --prefix=/opt/gerris make && make install
- Add Gerris to your path, and you're done.
echo "export PATH=$PATH:/opt/gerris/bin" >> ~/.profile
Optional tools
If we want to generate MPEG movies using ppm2mpeg we will need ffmpeg which is not available in Fink stable, so we must install it manually.
- Download the latest SVN snapshot from http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2
- Unpack and install it.
tar -xvjf ffmpeg-export-snapshot.tar.bz2 cd ffmpeg-export-<insert date here> ./configure --prefix=/opt/gerris make && make install

