Last active
April 24, 2016 13:13
-
-
Save karronoli/34e4c3b4dc9bb21d2ff4fcb680619ae7 to your computer and use it in GitHub Desktop.
Install GMT(Generic Mapping Tool) v5.2.1 on Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:15.10 | |
RUN apt-get update | |
RUN apt-get install -y ghostscript build-essential cmake libnetcdf-dev libgdal1-dev libfftw3-dev libpcre3-dev | |
RUN apt-get install -y gdal-bin wget | |
RUN wget ftp://ftp.soest.hawaii.edu/gmt/gmt-5.2.1-src.tar.xz && \ | |
tar xf gmt-5.2.1-src.tar.xz | |
RUN rm -fr ./gmt-5.2.1/build && mkdir ./gmt-5.2.1/build | |
RUN cd ./gmt-5.2.1/build && \ | |
cmake -DCMAKE_INSTALL_PREFIX=/usr \ | |
-DGSHHG_ROOT=/usr/share/gmt/coast \ | |
-DGMT_LIBDIR=lib \ | |
-DDCW_ROOT=/usr/share/gmt/dcw \ | |
-DGMT_DATADIR=share/gmt \ | |
-DGMT_MANDIR=share/man \ | |
-DGMT_DOCDIR=share/doc/gmt \ | |
-DCMAKE_BUILD_TYPE=Release .. && \ | |
make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment