This page helps you customize the GMT installation procedure under Unix
or Unix-like operating systems capable of running a Bourne (sh) script.
When submitting the completed form, you will receive a parameter file
(e.g., GMT4param.txt) that you may save and use as argument to the
*install_gmt4.sh script*. For example, assuming you save the parameter
file to GMT4param.txt, you can install the GMT4 package with the command
sh install_gmt4.sh GMT4param.txt
Output may be redirected to a log file by appending >& install.log (if
your login shell is csh or tcsh) or appending > install.log 2>&1 (if
your login shell is bash or sh).
Any problems during the install will be noted in the log. Saving the log
messages is of course optional.
/Note: You do not have to use this form. *install_gmt4.sh* can still be
run interactively as in previous versions. However, after a successful
install it will write all the parameters to a file named by you, and
this file can be used for background installs as shown above./
*IMPORTANT: Move or remove old gmt-*.bz2 files from the current
directory before running install_gmt4.sh!*
-----------------------------------------------------------------------A. Basic Requirements:
* You have access to a POSIX Bourne shell (Bash will also work). Note
that on Solaris you are advised to use the version in /usr/xpg4/bin
since /usr/bin/sh (and things like /usr/bin/grep) are not
Posix-compliant, and furthermore /usr/bin/awk thinks sin(1) = 1.
* You have bzip2 on your system. If not, use your package manager, or
get source code and executables for bzip2 from the bzip2
<http://www.bzip.org/> site.
* You have installed the netCDF library and include files via your
package manager.
* OPTIONAL: You have installed the gdal library and include files via
your package manager.
* You have write permissions in all directories you specify below. If
you have specified system directories for the install then you may
need to run the script using sudo (or as root).
* You have obtained and saved install_gmt4.sh
<http://gmt.soest.hawaii.edu/gmt4/gmt/install_gmt4.sh>, the GMT
install script. Be aware that some browsers may decide to save the
script with a different extension (e.g., .txt) so you may have to
rename the file after download.
* If you are using Cygwin, check these important notes
<http://gmt.soest.hawaii.edu/gmt4/gmt/gmt_cygwin.html> before you
proceed.
-----------------------------------------------------------------------*1. Select default units in GMT:*
SI units (cm)
US units (inch)
weird make utility. GNU make works best, and some Sys V makes have
problems. If you have make problems, use GNU make (assuming it is
installed): Select "other" and enter the path for make below./
Custom make program:
-----------------------------------------------------------------------*8. Select GMT final destination directories*
Place GMT in subdirectories of:
*OR*
Place GMT executables in:
Place GMT libraries in:
Place GMT include files in:
Place GMT data resources in:
Place GMT man pages in:
Place GMT doc pages in:
/usr/local/bin
Note: The installation will install all GMT components in several
subdirectories under one root directory. By default, GMT will be
installed under gmt-4.5.14 in the current working directory where
install_gmt4.sh is run. On most Unix systems, however, the preferred
location of the root directory will be something like /usr/local or /sw,
under which the installation will add bin, lib, include, share,
share/man, and share/doc/gmt, respectively. To select another location
for the root directory than the default (gmt-4.5.14), specify it in the
first box above, or enter subdirectories individually. Only specify
alternative directories if you want to place the files elsewhere.
/usr/local/bin
/Note that the man pages will be be placed in the sub-directories man1
and man3 of the directory specified above. The man utility will find the
GMT man pages if the chosen man directory is included in the users'
MANPATH environmental variable. Make sure the users' search path
contains the directory where you place the executables. Finally, advise
users to add a browser bookmark for the file
share/doc/gmt/html/gmt_services.html in the doc directory you chose
above; that page provides links to online GMT documentation and man pages./
-----------------------------------------------------------------------*9. Select alternative GMT_SHAREDIR directory*
Alternative GMT_SHAREDIR directory:
/Note: At run-time GMT will look in the shared data directory (specified
in section C.8) to find configuration and data files. That directory may
appear with a different name to remote users if a different mount point
is used or a symbolic link is set. GMT can use the environment variable
$GMT_SHAREDIR to point to the right place. If users see a different
location for the shared data files, specify it here. (It will be used
only to remind you at the end of the installation to set the environment
variable $GMT_SHAREDIR). Leave blank to select the shared data directory
of the data resources directory given in C.8 [Default]./
-----------------------------------------------------------------------*10. Select optional supplemental packages to install:*
MEX: Interface for reading/writing GMT grdfiles for Matlab or Octave
XGRID: X11 graphical editor for netCDF-based .nc files (REQUIRES Xlibs)
/Note: GMT supplements that only depend on GMT are always installed. The
above packages will only be installed if you select them. The mex
package requires Matlab or Octave, while xgrid requires various X11
libraries and include files./
-----------------------------------------------------------------------*11. Additional information for MEX (Matlab or Octave):*
Enter head of the Matlab system directory if you selected Matlab above:
/Note: You can leave the path blank under OS X or if $MATLAB is defined
in your environment and points to the correct directory/.
Enter directory for *.m files for the GMT/Matlab-Octave interface:
Enter directory for *.mex files for the GMT/Matlab-Octave interface:
/Note: You can leave these two paths blank to select the default paths
for either Matlab or Octave. In any case you must have permission to
create these directories (if they don't exist) and write to them.
Finally, if you chose Octave then it is assumed that octave is already
in your executable path, in particular that the utilities mkoctfile and
octave-config can be found when configure is run/.
-----------------------------------------------------------------------*11. Complete the operation:
* Delete all archives upon successful installation
Run all example scripts
/Note: Examples will only be run if you also ftp'ed the doc archive./
Once received, use right-click to bring up the Save Frame As... option
to save the GMT4param.txt file.