GenericMappingTools / gmt-for-geodesy

Material for the annual GMT for EarthScope short course
33 stars 16 forks source link

Command not found ERROR when i run $ ./test_1.sh #16

Closed wajielnin closed 2 years ago

wajielnin commented 2 years ago

The readme file suggests that by Running the test_1.sh script:

A window should pop up with a colored relief map of northern Africa.

but instead i get the following message:

./test_1.sh: line 3: gmt: command not found ./test_1.sh: line 4: gmt: command not found ./test_1.sh: line 5: gmt: command not found ./test_1.sh: line 6: gmt: command not found

PaulWessel commented 2 years ago

This means gmt is not in your path of executables. What OS are you one and how did you install GMT? For Linux or macOS type systems you will need to add the path of the executables to the search path (e.g. PATH).

wajielnin commented 2 years ago

Thanks for your message. I am using Windows OS

I downloaded and installed the GMT Windows installer gmt-6.4.0-win64.exe from this link

PaulWessel commented 2 years ago

OK, let's see if @joa-quim might have some insights here. Did you reboot to ensure the system recognized the path?

wajielnin commented 2 years ago

It works very well after the reboot. Thanks so much for your support. I got the two outputs for test 1 and 2 respectively

joa-quim commented 2 years ago

Reboot is not necessary, nut opening a new cmd window with the updated path, yes.

PaulWessel commented 2 years ago

Great, closing this issue.