# GMT installation error

**URL:** https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269
**Category:** Q&A
**Created:** [September 13, 2022, 3:31am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269 "2022-09-13T03:31:46Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![piyushether](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/piyushether/32/87_2.png) [@piyushether](https://forum.generic-mapping-tools.org/u/piyushether)
#### Post date: [September 13, 2022, 3:31am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/1 "2022-09-13T03:31:46Z")

</div>

Hi,

I have been using GMT for a decade. Recently, I switched to Mac from Linux, and I was trying to install GMT to a new mac system via homebrew, but I was facing the following error, which I cannot resolve.

```
Error: gmt: Failed to download resource "proj"
Download failed: https://ghcr.io/v2/homebrew/core/proj/blobs/sha256:c2fc067271d23d5251a8448f9980e58abdcc901469d869a84800ec9047c9ff3e

```

Please provide some suggestions on it.

---

<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: [September 13, 2022, 4:04am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/2 "2022-09-13T04:04:45Z")

</div>

Strange. I am unaware that gmt would try to download any software. Is this the result of running brew to install GMT? Hopefully someone using brew can advice on this. I trust you followed the recipe on our website for how to install from brew?

---

<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: [September 13, 2022, 4:11am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/3 "2022-09-13T04:11:29Z")

</div>

Homebrew will download and install GMT’s dependencies and proj is just one of them.

The proj download failures is likely due to temporary network connection issue or something wrong with brew’s proj package.

---

<div class="post-metadata">

### Author: ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)
#### Post date: [September 13, 2022, 4:55am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/4 "2022-09-13T04:55:48Z")

</div>

I have long been installing GMT (gmt4, gmt5, and gmt6) on my Macs with MacPorts, another system similar to Homebrew. The MacPorts installation similarly downloads some other packages that are required for GMT.

It is not a good idea to use both on the same system, though. If you want to switch, you should delete homebrew before installing MacPorts.

---

<div class="post-metadata">

### Author: ![chhei](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/chhei/32/32_2.png) [@chhei](https://forum.generic-mapping-tools.org/u/chhei)
#### Post date: [September 13, 2022, 6:55am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/5 "2022-09-13T06:55:48Z")

</div>

Hi @piyushether

like @seisman writes, this seems homebrew-related.

I am using a combination of homebrew (for GMT’s netCDF and related dependencies) and [William Kyngesburye’s GDAL/PROJ frameworks](https://kyngchaos.com/software/archive) to build GMT from source on the Mac. Depending on your setup/hardware/OS and whether the PROJ installation issues persist, this might be an alternative route. Happy to provide help if needed.

---

<div class="post-metadata">

### Author: ![jaltekruse](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/jaltekruse/32/1607_2.png) [@jaltekruse](https://forum.generic-mapping-tools.org/u/jaltekruse)
#### Post date: [September 13, 2022, 1:18pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/6 "2022-09-13T13:18:55Z")

</div>

Another way to install GMT on a mac is to use conda, a cross-platform Python package and environment manager, even if you don’t use Python. On my system, conda has the advantage of only requiring user permissions, unlike homebrew. It also keeps GMT and all its dependencies nicely organized in an isolated virtual environment.

---

<div class="post-metadata">

### Author: ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)
#### Post date: [September 16, 2022, 4:42am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/7 "2022-09-16T04:42:18Z")

</div>

Yes, MacPorts also requires the system administrator privilege (sudo) to install.

I use Anaconda (the full program for “conda”) to install PyGMT that has GMT 6 as a dependency so I get GMT in that environment also.

---

<div class="post-metadata">

### Author: ![piyushether](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/piyushether/32/87_2.png) [@piyushether](https://forum.generic-mapping-tools.org/u/piyushether)
#### Post date: [September 18, 2022, 11:24pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/8 "2022-09-18T23:24:14Z")

</div>

> [@pwessel](#):
>
> br

Yes, I followed the same recipe from the GMT website for a brew.

---

<div class="post-metadata">

### Author: ![piyushether](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/piyushether/32/87_2.png) [@piyushether](https://forum.generic-mapping-tools.org/u/piyushether)
#### Post date: [September 18, 2022, 11:28pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/9 "2022-09-18T23:28:06Z")

</div>

@EJFielding, I already have a setup with Homebrew and I installed multiple other software visa Homebrew, so I don’t want to disturb them by uninstalling Homebrew and installing MacPorts. I am still looking for a solution with Homebrew.

---

<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: [September 18, 2022, 11:56pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/10 "2022-09-18T23:56:20Z")

</div>

Looks like the proj install failed due to whatever. Try to remove proj with the  
brew uninstall proj  
then try to install proj again.

---

<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: [September 19, 2022, 12:09am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/11 "2022-09-19T00:09:25Z")

</div>

The GMTjl docs are (re)build everytime by installing GMT with Homebrew. Last build was two ours ago. So I know it works.

[https://github.com/GenericMappingTools/GMTjl\_doc/actions/runs/3078814633/jobs/4974611124](https://github.com/GenericMappingTools/GMTjl_doc/actions/runs/3078814633/jobs/4974611124)

---

<div class="post-metadata">

### Author: ![piyushether](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/piyushether/32/87_2.png) [@piyushether](https://forum.generic-mapping-tools.org/u/piyushether)
#### Post date: [September 28, 2022, 4:44am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/12 "2022-09-28T04:44:37Z")

</div>

I tried to install GMT via conda through Miniconda. It installed successfully, but when I tried to run any GMT command in the terminal. It shows me the following error.

```
dyld[95223]: Library not loaded: '@rpath/liblapack.3.dylib'
Referenced from: '/opt/homebrew/Caskroom/miniconda/base/lib/libgmt.6.dylib'
Reason: tried: '/opt/homebrew/Caskroom/miniconda/base/lib/liblapack.3.dylib' (no such file), '/opt/homebrew/Caskroom/miniconda/base/bin/../lib/liblapack.3.dylib' (no such file), '/opt/homebrew/Caskroom/miniconda/base/bin/../lib/liblapack.3.dylib' (no such file), '/usr/local/lib/liblapack.3.dylib' (no such file), '/usr/lib/liblapack.3.dylib' (no such file)

```

I can’t understand the error. Do I need to link this library with someone?

---

<div class="post-metadata">

### Author: ![piyushether](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/piyushether/32/87_2.png) [@piyushether](https://forum.generic-mapping-tools.org/u/piyushether)
#### Post date: [September 28, 2022, 4:50am UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/13 "2022-09-28T04:50:09Z")

</div>

Hi Paul,

I tried to uninstall and reinstall ‘proj’ but it gives same error.

```
Error: proj: Failed to download resource "proj"
Download failed: https://ghcr.io/v2/homebrew/core/proj/blobs/sha256:c2fc067271d23d5251a8448f9980e58abdcc901469d869a84800ec9047c9ff3e
```

---

<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: [September 29, 2022, 7:26pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/14 "2022-09-29T19:26:05Z")

</div>

Sorry, you will need to seek help from someone using home-brew since I do not and all I know is that all others on home-brew have no problems - hence it is something specific about your setup.

---

<div class="post-metadata">

### Author: ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)
#### Post date: [September 30, 2022, 5:36pm UTC](https://forum.generic-mapping-tools.org/t/gmt-installation-error/3269/15 "2022-09-30T17:36:27Z")

</div>

I don’t know how Homebrew works, but I would expect that you would want to install Miniconda directly from the Anaconda site, not within Homebrew. Then Miniconda will create and manage its own set of compatible libraries. It is usually not a good idea to mix package managers. I use both Anaconda and MacPorts to install software. I install gmt6 with MacPorts and PyGMT with Anaconda and they have separate sets of libraries.
