GMT installation part 2.

Part 1. continued

20160801

  1. Enable WSL
  2. Install Anaconda
  3. GMT4.5
  4. GMT5

20190208 Note

I didn't care at the time of making the memo, but it seems that FTP of Tokai University is not connected.

Please download from the head family, not the mirror.

ftp://ftp.soest.hawaii.edu/gmt/

  1. GMT4.5

  2. Make the environment active

  3. Installation of required libraries, etc.

  4. Installation of the main unit

  5. Confirmation

3.1. Make the environment active

$ source activate gmt4

3.2. Installation of required libraries, etc.

Installed except gshhg in the work of 1.

http://gmt.soest.hawaii.edu/projects/gmt/wiki/Download

Download gshhg-gmt from

$ cd ${HOME}/anaconda3/envs/gmt4
$ mkdir -p src
$ mkdir -p share/gmt
$ cd src
#Move the downloaded one here
$ tar zxf gshhg-gmt-2.3.6.tar.gz
$ mv gshhg-gmt-2.3.6 ../share/gmt/gshhg

--If the old version is fine, ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gshhg-gmt-2.3.4.tar.gz

3.3. Installation of the main unit

$ cd ${HOME}/anaconda3/envs/gmt4/src
$ wget -q ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gmt-4.5.13-src.tar.bz2
$ tar xjf gmt-4.5.13-src.tar.bz2
$ cd gmt-4.5.13
$ ./configure \
    --prefix=${HOME}/anaconda3/envs/gmt4 \
    --with-gshhg-dir=${HOME}/anaconda3/envs/gmt4/share/gmt/gshhg \
    --enable-triangle \
    --disable-flock \
    --enable-eps
$ make
$ make install-gmt
$ make install-data
$ make install-man
$ make install-doc

3.4. Confirmation

$ gmtdefaults -D | head
#
#	GMT-SYSTEM 4.5.13 [64-bit] Defaults file
#
#-------- Plot Media Parameters -------------
PAGE_COLOR		= white
PAGE_ORIENTATION	= landscape
PAPER_MEDIA		= a4+
#-------- Basemap Annotation Parameters ------
ANNOT_MIN_ANGLE		= 20
ANNOT_MIN_SPACING	= 0
  1. GMT5

  2. Make the environment active

  3. Installation of required libraries, etc.

  4. Installation of the main unit

  5. Confirmation

4.1. Make the environment active

$ source activate gmt5

4.2. Installation of required libraries, etc.

Installed except for gshhg and dcw in the work of 1.

http://gmt.soest.hawaii.edu/projects/gmt/wiki/Download

Download gshhg, dcw from

$ cd ${HOME}/anaconda3/envs/gmt5
$ mkdir -p src
$ mkdir -p share/gmt
$ cd src
#Move the downloaded one here
$ tar zxf dcw-gmt-1.1.2.tar.gz
$ tar zxf gshhg-gmt-2.3.5.tar.gz
$ mv src/dcw-gmt-1.1.2 share/gmt/dcw
$ mv src/gshhg-gmt-2.3.5 share/gmt/gshhg

--If the old version is fine, - ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gshhg-gmt-2.3.4.tar.gz - ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/dcw-gmt-1.1.1.tar.gz

4.3. Installation of the main unit

http://gmt.soest.hawaii.edu/projects/gmt/wiki/Download

Download the main body

$ cd ${HOME}/anaconda3/envs/gmt5/src
#Move the downloaded one here
$ tar xzf gmt-5.2.1-src.tar.gz
$ cd gmt-5.2.1/
$ cp cmake/ConfigUserTemplate.cmake cmake/ConfigUser.cmake
$ mkdir build
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=${HOME}/anaconda3/envs/gmt5 ..
$ make all
$ make install

4.4. Confirmation

$ gmtdefaults -D | head
#
# GMT 5.2.1 Defaults file
# vim:sw=8:ts=8:sts=8
# $Revision: 15178 $
# $LastChangedDate: 2015-11-06 11:45:03 +0100 (Fri, 06 Nov 2015) $
#
# COLOR Parameters
#
COLOR_BACKGROUND                = black
COLOR_FOREGROUND                = white

Recommended Posts

GMT installation part 2.
GMT installation part 1.
datetime part 1
numpy part 1
Django installation
boto3 installation
Pythia Installation
argparse part 1
Docker installation
Volatility installation
Python installation
pip installation
Sphinx installation
InstantOS 1 installation
Jupyter installation
Python installation
pip installation
numpy part 2
Kivy installation
ChaSen installation
Backtrader installation
pip installation