tumblr hit tracking tool

GAMIT-GLOBK prerequisites

A PDF version (68 kB) of this web page is available in A4 or letter paper format and in the documentation directory of the GAMIT-GLOBK FTP server.

This information is compiled through experience with first-time users of GAMIT-GLOBK from workshops and elsewhere. Details are provided for installing GAMIT-GLOBK on Linux, Mac and Windows. Additional information is provided on optional programs such as GMT (required for any GAMIT-GLOBK scripts that produce plots), Tom Herring's tsview and velview tools (requires MATLAB) and CATS (see here also).

All GAMIT-GLOBK workshop participants must arrive having read through and completed the steps shown on this web page before the start of the workshop.

This is particularly important given the time and resource constraints when downloading very large package files such as Xcode for Mac users, which will produce unnecessary and unwanted delays.

GAMIT-GLOBK

In addition to a basic UNIX- or Linux-based operating system, there are four fundamental requirements for installing GAMIT-GLOBK on any system:

Many systems will have some or all of these installed by default but others may not. Below are some details about what to expect from various systems that I have experience with.

Once you have completed the steps described for your system, below, you may download and install GAMIT-GLOBK from the source code provided on the FTP server. Further information is available on the main GAMIT-GLOBK web page.

Linux

There are many different types of Linux system and each is slightly different. However, if you are a Linux user, it is likely that you are familiar with the command line interface, the requirements described above and installing packages as necessary. So I will restrict myself here simply to note a couple of specific points that I am aware of.

It is likely that most Linux systems will have a Fortran and C compliler installed by default.

Beware that some systems (e.g. Ubuntu) may also require installation of csh and tcsh for GAMIT-GLOBK scripts to run. These may be installed quickly and easily through, e.g., the Ubuntu Software Center.

Mac

Apple provides many advanced command line tools with Xcode, a package mostly designed for developers of software but which also contains a C compiler and the X11 libraries and headers required for GAMIT-GLOBK. One must be registered as an Apple Developer in order to log in and download Xcode or the Command Line Tools only but the program is free to join and there are no obligations. Note that this is different from the regular Apple ID.

Once registered, log in, search for Xcode and download the latest version for your system: 3.1.4 for Mac OS X 10.5 (Leopard); 3.2.6 for Mac OS X 10.6 (Snow Leopard); 4.6.3 or "Command Line Tools for Xcode - April 2013" for Mac OS X 10.7 (Lion); or Xcode 5.1 or "Command Line Tools for Xcode - March 2014" for Mac OS X 10.8 (Mountain Lion) and 10.9 (Mavericks), as of the last update of this web page. From February 2012 and Xcode 4.3, Command Line Tools for Xcode are available as a separate, smaller download also, which significantly reduces the size of the installation. Note that Xcode, but not the separate Command Line Tools sub-package, is available through the App Store for Mac OS X 10.7.3 (update of Lion) and later.

If using Xcode 4.3.1 or later for Mac OS X 10.7, 10.8 or 10.9, you must open Xcode (under "Applications") and additionally select to install "Command Line Tools" in "Preferences". If you are using another version of Xcode, I recommend selecting not to install anything except these command line tools in the installation wizard because Xcode is a very large package from which we only require a small number of programs.

Xcode does not include a Fortran compiler but you can install one using the information provided here.

As of Xcode 4.4, Apple has also discontinued support of X11. XQuartz should instead be installed for the required X Windows libraries and headers described above, which will be placed in /opt/X11/lib and /opt/X11/include, respectively, rather than /usr. However, a link from /usr/X11 to /opt/X11 is created, so all Mac users should keep the following set in libraries/Makefile.config:

X11LIBPATH /usr/X11/lib
X11INCPATH /usr/X11/include

Windows

Cygwin is a common Linux "emulator" for Windows which I recommend for installing and running GAMIT-GLOBK. Download and run setup.exe to begin installation. Generally the defaults shown throughout the installation process are adequate and need not be changed.

There are, however, specific packages which are required in addition to the default Cygwin packages that are installed. These are at least:

One may search for the appropriate packages from the Cygwin package search. Search for "libX11.*" and "Xlib.h" for the X11 libraries and header file, respectively, to find the appropriate package.

I also highly recommend installing the X11/xinit package and its dependencies. This will provide an X Windows environment from which one can open and use, for example, Emacs for creating or editing text files. This is important given then different end-of-line characters between Windows and Unix, Linux and Mac OS X.

Additional software

There are several additional programs that users may find useful if not necessary to install. The major addition is GMT, which is required for any GAMIT-GLOBK scripts that produce plots, e.g. sh_plotcrd, sh_plotvel, etc. GMT produces Postscript graphics which are most readily viewed using, for example, "gs" or "gv".

Tom Herring has produced GUI-based programs for time series (tsview) and velocity (velview) viewing and simple manipulation. These are written in, and therefore require, MATLAB.