Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation failure in MacOs #462

Closed
lazarusA opened this issue Oct 14, 2020 · 2 comments
Closed

Installation failure in MacOs #462

lazarusA opened this issue Oct 14, 2020 · 2 comments

Comments

@lazarusA
Copy link

I'm running Julia 1.5.1 where I do have GMT.jl installed, but when I called it it says...

> using GMT
> You don't seem to have GMT installed and I don't currently install it automatically,
> so you will have to do it yourself. Please follow instructions bellow.
> https://github.com/GenericMappingTools/gmt/blob/master/INSTALL.md

But, I do have GMT installed in the following location:

/Applications/GMT-6.1.1.app/Contents/MacOS/GMT-6.1.1

what should I do to get it properly working? Thanks.

@joa-quim
Copy link
Member

Did you install the GMT bundle? If yes, I'm sorry but it won't work. Not for the reason you encountered but because MacOS manages to screw a lot of paths to dependencies and you'd find dependency conflicts (zlib for example). The solution is to build GMT using Homebrew (the GMT page has instructions for that).

But still about the error you found, the issue is that GMT is not in your path, so when GMT.jl tries to run this

julia> run(`gmt --version`)

it doesn't find it.

@lazarusA
Copy link
Author

Oh, I see. Ok. Doing the following steps works just fine.
First

$ brew install gmt
$ brew install ghostscript graphicsmagick ffmpeg

and then in the julia repl

> ] add GMT
> using GMT

is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants