Mac OS X

Much of the previous generic Unix/Linux installation section applies also to OS X. Therefore this section deals mainly with the specifics of OS X installation, some of the steps listed here are explained in more detail in the generic Unix section.

Beside building everything on your own (good luck), at this time there are two ways to install Gwyddion:

Preparation

To install and run Gwyddion you need the Xcode Tools and X (SDK and App) installed. They where located on your CDs/DVDs. The Xcode Tools where located on the first DVD as XcodeTools.mpkg below Xcode Tools, the X11SDK is located as X11SDK.pkg below the Packages Folder within Xcode Tools. X11 is localted as X11User.pkg below System/Installation/Packages even on the first DVD. If you have an CD Set the Discs may differ. Also you should have some experience using Terminal.app. All the commands in the the rest of this section are to be entered and run in Terminal.app.

See installation dependencies section for an overview of required and optional packages to install prior to Gwyddion installation. The following table summarizes how they are called in the two software collections:

PackageFinkMacPorts
Gtk+gtk+2gtk2
GtkGLExtgtkglext1gtkglext
FFTW3fftw3fftw-3
LibXML2libxml2libxml2

MacPorts

MacPorts is an Port based System for porting and installing Open Source/GNU software to OS X. It's based on using installation files called “Portfiles” which where describing the steps to compile and install an application. So it's far easy to port software to OS X using MacPorts but every computer has to compile the application. Get and install MacPorts. After you installed MacPorts, run

sudo port selfupdate

to update MacPorts to the latest version.

Gwyddion can be then built and installed simply by

sudo port install gwyddion

The result will appear in /opt/local as any other MacPorts software.

Fink

Get and install Fink. After you installed Fink run

apt-get update

to update the database of available packages and install the dependencies (the following list is an example, you can choose a different set of optional packages):

apt-get install gtk+2 gtkglext1 fftw3 libxml2

When everything is installed, download Gwyddion source code, and follow the Unix installation section instructions. Or you can use Fink .info file available from the project web site.

Running

Start X11.app and type in Terminal.app

export DISPLAY=":0"

Then run Gwyddion from the folder it was installed to. This is typically /opt/local/bin for MacPorts and /usr/local/bin for Fink. So for example for MacPorts run:

/usr/local/bin/gwyddion

You can also configure X11.app to run Gwyddion via: Locate X11.app in your dock, open the menu, choose Applications, choose Customize from the next menu. Here you can choose add and enter the name (gwyddion for example) as Menu Name and the complete path to gwddion (e.g. /usr/local/bin/gwyddion) as Command. After this you can choose gwyddion from the X11 menue.