GMT Mapping Tool: "sh: psbasemap: command not found"

341 views
Skip to first unread message

Eugene Morgan

unread,
Aug 1, 2016, 7:55:38 PM8/1/16
to OpendTect Users
Dear OpendTect Users,

I'm trying to use the GMT plugin in OpendTect 6.0.0 on OS X 10.11.6. I keep getting the error message "sh: psbasemap: command not found" upon trying to create my map. I've installed the GMT-5.2.1 app, set the environment variable GMTROOT as /Applications/GMT-5.2.1.app/Contents/Resources, and added /Applications/GMT-5.2.1.app/Contents/Resources/bin to my PATH. I've done this for both my .bash_profile and .profile (sh shell, which GMT seems to use). I've also sourced gmt_functions.sh in my .profile, which *should* allow for calls to the old gmt commands (i.e., using the syntax before the gmt module was adopted in GMT5). My questions:
  • Is OpendTect compatible with GMT5 (installed via bundle for mac os x)? There is no reference to GMT version numbering in the OpendTect documentation.
  • Has anyone gotten the plugin to work with this sort of GMT5 install? If so, how? I would like to avoid having to re-install GMT from source to get this plugin working.
  • Can anyone confirm that OpendTect is using sh shell? 
Any help with any of these questions would be greatly appreciated.

Thanks,
Eugene

Raman Singh

unread,
Aug 2, 2016, 3:54:50 AM8/2/16
to us...@opendtect.org
Hi Eugene,

Since version 6.0.2 onwards OpendTect supports GMT 5 on all platforms. When you launch OpendTect on Mac using the Application Launcher, it does not use the sh shell and therefore your environment variables are not effective. I am not sure if you can set system level environment variables in Mac, but an easy way out is to launch OpendTect from a terminal. The command would typically be:

open /Applications/OpendTect\ 6.0.0.app

Apart from GMTROOT and PATH, GMT will also need GMT_SHAREDIR variable to point to /Applications/GMT-5.2.1.app/Contents/Resources/share.

I hope this helps.

Best regards,

Raman K Singh
Manager Software Development
______________________________

dGB Earth Sciences, India
Phone: +91 22 25704984
Fax: +91 22 25704977
Mobile: +91 98 33452542
E-mail: raman...@dgbes.com
Internet: dgbes.com & opendtect.org
______________________________


--
You received this message because you are subscribed to the Google Groups "OpendTect Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to users+un...@opendtect.org.
To post to this group, send email to us...@opendtect.org.
Visit this group at https://groups.google.com/a/opendtect.org/group/users/.
To view this discussion on the web visit https://groups.google.com/a/opendtect.org/d/msgid/users/7b0f4613-b86b-41d4-a0bf-0823b46218f0%40opendtect.org.
For more options, visit https://groups.google.com/a/opendtect.org/d/optout.


OpendTect: selected recipient of SEG's 
Distinguished Achievement Award 2016

Eugene Morgan

unread,
Aug 3, 2016, 1:01:55 PM8/3/16
to OpendTect Users
Hi Raman,

Yes, this works now that I've upgraded to 6.0.3, but only by launching from terminal. I set the system environment variables following these instructions: http://stackoverflow.com/questions/25385934/setting-environment-variables-via-launchd-conf-no-longer-works-in-os-x-yosemite (which also works for El Capitan), but still I get the "sh: psbasemap: command not found" error when opening  the app normally. Again, I get no errors when launching from terminal, which is fine. Thanks for your help!

-Eugene
Reply all
Reply to author
Forward
0 new messages