# GMT 6.1.1\_3 not supported by Julia

**URL:** <https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434>\
**Category:** Q&A\
**Created:** [March 5, 2021, 11:55pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434 "2021-03-05T23:55:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![marianoarnaiz](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marianoarnaiz/32/971_2.png) [@marianoarnaiz](https://forum.generic-mapping-tools.org/u/marianoarnaiz)\
**Post date:** [March 5, 2021, 11:55pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/1 "2021-03-05T23:55:58Z")

</div>

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

Any idea how can I fix it?

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [March 6, 2021, 12:38am UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/2 "2021-03-06T00:38:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![seisman](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/seisman/32/4_2.png) [@seisman](https://forum.generic-mapping-tools.org/u/seisman)\
**Post date:** [March 6, 2021, 1:15am UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/3 "2021-03-06T01:15:19Z")

</div>

```auto
/usr/local/Cellar/gmt/6.1.1_2/lib/libgmt.dylib

```

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.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [March 6, 2021, 1:28am UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/4 "2021-03-06T01:28:44Z")

</div>

I think you must set **GMT\_LIBRARY** to point to this specific libgmt.dylib file before staring Julia

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [March 6, 2021, 1:43am UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/5 "2021-03-06T01:43:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [March 6, 2021, 12:28pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/7 "2021-03-06T12:28:13Z")

</div>

> [@pwessel](#):
>
> I think you must set **GMT\_LIBRARY**

You need to do that but that’s because of the Xcode oddities in finding the debug lib.

---

<div class="post-metadata">

**Author:** ![marianoarnaiz](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marianoarnaiz/32/971_2.png) [@marianoarnaiz](https://forum.generic-mapping-tools.org/u/marianoarnaiz)\
**Post date:** [March 6, 2021, 12:55pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/8 "2021-03-06T12:55:02Z")

</div>

Well, I did:

- deleted GMT from:  
/Users/omenbonum/.julia/compiled/v1.5

- Reinstalled it from brew (just in case)

- Removed and reinstalled the packaged  
And it didn’t work

At the end, I had to go back to the original Mac zsh shell (I was using tcsh), restart my Mac and do all the previous steps. And it finally works!

---

<div class="post-metadata">

**Author:** ![Joaquim](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/joaquim/32/16_2.png) [@Joaquim](https://forum.generic-mapping-tools.org/u/Joaquim)\
**Post date:** [March 6, 2021, 1:11pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/9 "2021-03-06T13:11:03Z")

</div>

> [@marianoarnaiz](#):
>
> - deleted GMT from:  
> /Users/omenbonum/.julia/compiled/v1.5
> - Reinstalled it from brew (just in case)

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.

---

<div class="post-metadata">

**Author:** ![marianoarnaiz](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/marianoarnaiz/32/971_2.png) [@marianoarnaiz](https://forum.generic-mapping-tools.org/u/marianoarnaiz)\
**Post date:** [March 6, 2021, 1:14pm UTC](https://forum.generic-mapping-tools.org/t/gmt-6-1-1-3-not-supported-by-julia/1434/10 "2021-03-06T13:14:13Z")

</div>

You are right. The first and second point don’t have any relationship. I just did it in case there was something weird with the brew install.

I think the major problem was the shell that was being used.
