I tried to install generic mapping tools v6.0.0 according to instructions. I failed to install it. I thought I carried out installing and building GMT v6.0.0.
gmt not found, but can be installed with sudo apt install gmt
. It is for GMT v5.4.5
Should I install GMT v6.0.0 via GMT5 as follows for the first step?
For example,
sudo apt-get install gmt gmt-dcw gmt-gshhg
EDIT: My problem stemmed from setting path.
I used these steps to install it:
Install the required tools
Download the source with:
Untar the source file:
Install the GSHHG and DCW-GMT:
Locate these files using the command:
Configuring:
GMT can be built on any platform supported by CMake. CMake is a cross-platform, open-source system for managing the build process. The building process is controlled by two configuration files in the cmake directory:
ConfigDefault.cmake is version controlled and used to add new default variables and set defaults for everyone. You should NOT edit this file. ConfigUser.cmake is not version controlled and used to override defaults on a per-user basis. There is a template file, ConfigUserTemplate.cmake, that you should copy to ConfigUser.cmake and make your changes therein. In the source tree, copy the template configuration file cmake/ConfigUserTemplate.cmake to cmake/ConfigUser.cmake, and edit the file according to your demands. This is an example:
Change into the untared folder and run the following commands:
Find the location of the installed tool if you didn't set it yourself:
You also need to download support data:
Optional libraries as needed:
Install optional dependencies
to enable movie-making
to enable document viewing via gmt docs
to enable testing
to build the documentation
Update:
Setting path
Note: More information for fine tuning your install can be found here
Learn your user ID using
whoami
. Let's say your user ID is user.For example, I'd like to install this software in Documents.
NOTE: Tested for Ubuntu 19.10