Hi everyone.
I just updated to GMT 6.1.1_3 in my Mac and tried to call it from Julia and I get this error:
ERROR: could not load library “/usr/local/Cellar/gmt/6.1.1_2/lib/libgmt.dylib”
dlopen(/usr/local/Cellar/gmt/6.1.1_2/lib/libgmt.dylib, 1): image not found
Did you install the GMT bundle?
Unfortunately Apple does so dark magic to it that the bundle does not work for externals (Julia, Matlab, Python, etc…). Use homebrew.
I think it means you installed GMT using Homebrew.
The problem is that although you installed GMT 6.1.1_3, GMT.jl still tries to load the old library (GMT 6.1.1_2). So you should tell GMT.jl to load the correct version.
No, no need to set anything. But Dongdong got it. If the lib has changed address (but why would it? The public name is a symbolic link with always the same name) Julia still remembers the old address until you force a new precompile.
Anyway try to delete your equivalent of mine C:\Users\joaqu\.julia\compiled\v1.6\GMT and launch Julia again. This will force a precompile.
Don’t understand this. In first point you deleted the pre-compiled version of GMT.jl but the second point has nothing to do with GMT.jl that you cannot install from brew (thatI know of).
Any way, thanks for bringing this up. I will have to think on a strategy for GMT.jl on Macs that change the full name of the gmtlib on each upgrade.