GenericMappingTools / 2020-unavco-course

Planning and material for the 2020 UNAVCO GMT for Geodesy course
34 stars 18 forks source link

Error while running ./test_1.sh #13

Closed ibnsana closed 4 years ago

ibnsana commented 4 years ago

I'm getting the following error while running ./test_1.sh ./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 4 years ago

So gmt is not installed, of you have installed it but it is not in your system PATH. Did you follow the instructions to install GMT?

ibnsana commented 4 years ago

Yes, I installed it correctly.

ibnsana commented 4 years ago

Cloning into '2020-unavco-course'... remote: Enumerating objects: 80, done. remote: Counting objects: 100% (80/80), done. remote: Compressing objects: 100% (72/72), done. remote: Total 80 (delta 19), reused 54 (delta 7), pack-reused 0 Unpacking objects: 100% (80/80), done.

JZurutuza commented 4 years ago

ibsana,

What do you get if you type gmt or psxy in the terminal?

Regards, J. Zurutuza

ibnsana commented 4 years ago

I get this: -bash: gmt: command not found

JZurutuza commented 4 years ago

Are the gmt executables correctly set in the PATH? Try using find to see where they might be. Seems your installation is not yet done and you need to set some variables.

ibnsana commented 4 years ago

How can I do that?

joa-quim commented 4 years ago

@ibnsana What is your operating system and how did you install GMT?

ibnsana commented 4 years ago

@joa-quim Operating system: Catalina. I installed GMT using git clone command.

joa-quim commented 4 years ago

So you didn't install GMT yet. You only copied its source code. Next you need to compile it, but that's the hardest route. You should had followed the recommended way, which is to install the .dmg

PaulWessel commented 4 years ago

If the building from source turns out to be a problem we would recommend you just install from the macOS installer which has everything you need. You can always explore building from source later.

ibnsana commented 4 years ago

Thanks. I installed GMT using macOS installer

PaulWessel commented 4 years ago

OK, closing this issue - please reopen if any more problems.