...
Install the following packages using the cygwin installer.
No Format |
---|
cmake, fftw, fftw-devel, gcc, g++, ghostscript, gv, libnetcdf7, libnetcdf-devel, libpcre, libpcre-devel, make, openssh, subversion, xinit, zlib, zlib-devel |
Set the environmental variable HDF5_DISABLE_VERSION_CHECK=2 by adding the following line to the '.bashrc' file in the cygwin home folder (Omitting this step will cause an error):
...
Code Block | ||
---|---|---|
| ||
cd $HOME/builds/gdal-x.x.x (x.x.x is the version)<version> ./configure --prefix=$HOME/opt/gdal-x.x.x<version> make make install |
Info |
---|
Replace <version> with the version of 'gdal' |
Download the latest stable GMT source code from 'http://gmt.soest.hawaii.edu/projects/gmt/wiki/Download', along with 'gshhg-gmt' and 'dcw-gmt', and extract the source codes into a temporary build folder (e.g. '$HOME/builds/').
...
Info |
---|
Replace <username> with your actual username. |
Build and install GMT:
Code Block | ||
---|---|---|
| ||
cd <path to GMT source>GMT> mkdir build cd build cmake .. make make install |
...
Set up the PATH environmental variables for GMT and GDAL by adding the following line in '.bashrc' file in the cygwin home folder:
Code Block | ||
---|---|---|
| ||
export PATH=$PATH:$HOME/opt/gmt5/bin:$HOME/opt/gdal-2.0.1/bin |
...