なお、NetCDF も必須です。以下の手順ではすでに入っているものとして進めています。まだの方はこちらをご参照ください。
gdal 1.11.2
cd /tmp wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz gtar xfvz gdal-1.11.2.tar.gz cd gdal-1.11.2 ./configure --prefix=/usr/local/gdal make -j 2 sudo make install vi ~/.bashrc PATH="$PATH":/usr/local/gdal/bin
cmake 3.2.3
cd /tmp wget http://www.cmake.org/files/v3.2/cmake-3.2.3.tar.gz gtar xfvz cmake-3.2.3.tar.gz cd cmake-3.2.3 less README.rst ./bootstrap --help ./bootstrap --prefix=/usr/local/cmake make sudo make install vi ~/.bashrc PATH="$PATH":/usr/local/cmake/bin PATH="$PATH":/usr/local/cmake/bin
GMT 5.1.2
cd /tmp wget ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gmt-5.1.2-src.tar.gz wget ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/dcw-gmt-1.1.1.tar.gz wget ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/gshhg-gmt-2.3.4.tar.gz gtar xfvz gmt-5.1.2-src.tar.gz gtar xfvz gshhg-gmt-2.3.4.tar.gz gtar xfvz dcw-gmt-1.1.1.tar.gz cd gmt-5.1.2/cmake cp -i ConfigUserTemplate.cmake ConfigUser.cmake vi ConfigUser.cmake set (CMAKE_INSTALL_PREFIX /usr/local/gmt5.1.2) set (GSHHG_ROOT /tmp/gshhg-gmt-2.3.4) set (COPY_GSHHG TRUE) set (DCW_ROOT /tmp/dcw-gmt-1.1.1) set (COPY_DCW TRUE) set (NETCDF_ROOT /usr/local/netcdf/) set (GDAL_ROOT /usr/local/gdal/) set (LICENSE_RESTRICTED off) cd .. mkdir build; cd build cmake .. make sudo make install cd /usr/local sudo mv -i gmt gmt4.5.13 sudo ln -s gmt5.1.2 gmt
test
cd /tmp gmt pscoast -JM16.0c -R128/148/28/46 -Dh -Ba5f1WSne -W1p -P > gmt.ps