Download

GMT is available on Windows, MacOS X and Linux. The current version is GMT 5.0.0b and was released on August 25, 2011. GMT is open source software available under the terms of the Lesser GNU Lesser General Public License. Its source code can be downloaded through tarballs or the subversion repository. Source and binary packages are provided for the current version.

Linux

Ubuntu

Select the packages gmt and choose recommended packages like gmt-coastline-data from your favorite package manager or from the terminal:

sudo aptitude install gmt

Debian

Select the packages gmt and choose recommended packages like gmt-coastline-data from your favorite package manager or from the terminal:

sudo aptitude install gmt

RHEL, CentOS, Fedora

Install GMT and its dependencies with:

sudo yum install gmt

MacOSX

Standalone Installer

Download the application bundle and drag GMT.app to any folder. This bundle includes a self contained GMT installation. GMT.app opens a terminal from which you can invoke GMT programs and scripts. If you like, you can add the GMT programs contained in the application bundle to your search path for executables. For that, just run GMT.app once and type

echo ${PATH%%:*}

in the terminal. Then prepend this directory to your PATH environment variable, e.g., in ~/.bashrc.

Install via macports

Install macports and then the required ports in this order:

sudo port install ghostscript pcre netcdf
sudo port install gdal +curl +hdf4 +hdf5 +netcdf
sudo port install gmt5 +gdal +triangle

Install via fink

sudo fink install ghostscript gmt

Windows

We provide standalone installers in the downloads section If you need the newest development version refer to the instructions for building GMT from source.

Source

Download the latest stable source release from the downloads page or get the latest development version from subversion

svn checkout svn://gmtserver.soest.hawaii.edu/gmt5/trunk gmt5-dev
and refer to the included documentation or the online instructions for building GMT from source.