# How to solve the "blocked from use" issue for the Mac OS version of mex-gmt?

**URL:** <https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239>\
**Category:** Q&A\
**Tags:** gmt\
**Created:** [October 31, 2021, 11:38am UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239 "2021-10-31T11:38:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![leon6j](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@leon6j](https://forum.generic-mapping-tools.org/u/leon6j)\
**Post date:** [October 31, 2021, 11:38am UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/1 "2021-10-31T11:38:03Z")

</div>

I just installed mex-gmt on my Mac OS Big Sur. Unfortunately, I keep getting error messages saying that a specific function of the mex-gmt library was “blocked from use because it is not from an identified developer”.

I tried to go the System preference -\> Security & Privacy and click “Allow anyway”, but this error keeps poping up for other functions and never stop.

I wonder if there is a way to fix this issue once and for all?

Many thanks.

---

<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:** [October 31, 2021, 9:37pm UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/2 "2021-10-31T21:37:17Z")

</div>

I hink right-clicking on the icon and open gives the option to open anyway.

---

<div class="post-metadata">

**Author:** ![leon6j](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@leon6j](https://forum.generic-mapping-tools.org/u/leon6j)\
**Post date:** [October 31, 2021, 11:15pm UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/3 "2021-10-31T23:15:40Z")

</div>

Thanks! I agree.

Unfortunately, I still got the error when testing the below command, as recommended during the installation:  
`gmt ('psbasemap', '-R0/10/0/15 -JM6i -P -Baf -BWSne+glightblue > map1.ps')`

---

<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:** [November 1, 2021, 12:06pm UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/4 "2021-11-01T12:06:36Z")

</div>

> [@leon6j](#):
>
> I just installed mex-gmt on my Mac OS Big Sur.

How did you do that. `gmt-mex`? Installing instructions are quite outdated and even refer to old SVN location.

---

<div class="post-metadata">

**Author:** ![leon6j](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@leon6j](https://forum.generic-mapping-tools.org/u/leon6j)\
**Post date:** [November 1, 2021, 1:09pm UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/5 "2021-11-01T13:09:00Z")

</div>

I followed the instructions here:  
[http://gmt.soest.hawaii.edu/projects/gmt-matlab-octave-api/wiki#22-Install-gmt-mex-for-OS-X](http://gmt.soest.hawaii.edu/projects/gmt-matlab-octave-api/wiki#22-Install-gmt-mex-for-OS-X)

---

<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:** [November 1, 2021, 4:54pm UTC](https://forum.generic-mapping-tools.org/t/how-to-solve-the-blocked-from-use-issue-for-the-mac-os-version-of-mex-gmt/2239/6 "2021-11-01T16:54:04Z")

</div>

Probably should not look at deprecated web pages from 5 years ago. This is the current GitHub page: [https://github.com/GenericMappingTools/gmtmex](https://github.com/GenericMappingTools/gmtmex)
