# Building ROOT on macOS Catalina (10.15.3)

**URL:** <https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977>\
**Category:** Newbie\
**Created:** [February 14, 2020, 8:04pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977 "2020-02-14T20:04:58Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaofferm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jaofferm/32/21649_2.png) [@jaofferm](https://root-forum.cern.ch/u/jaofferm)\
**Post date:** [February 14, 2020, 8:04pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/1 "2020-02-14T20:04:58Z")

</div>

Dear ROOTers,

I’m trying to build ROOT from source on the latest version of macOS, but I’m running into some issues (I see that there are a few posts on this topic, but the reported errors appear different and their solutions don’t seem to work for me).

I’ve tried ROOT version 6.18.04 as well as the master branch on GitHub – in both cases the build with `cmake` fails after a certain point, with this error message:

> [56%] Built target G\_\_Net  
> [56%] **Linking CXX shared library …/…/lib/libNet.so**  
> ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86\_64

The binary provided by Axel @ ([Root catalina bug report - #3 by Axel](https://root-forum.cern.ch/t/root-catalina-bug-report/36693/3)) does work – however it would be great to be able to build things from source, for linking external libraries, Python3 etc.

_ROOT Version:_ 6.19 (GitHub master, hash is 63f5742)  
_Platform:_ macOS Catalina (10.15.3)  
_Compiler:_ Apple clang version 11.0.0

* * *

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [February 16, 2020, 3:48pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/2 "2020-02-16T15:48:10Z")

</div>

> [@jaofferm](#):
>
> your binary is not an allowed client

I am not sure if disabling SIP will help here. Did you try to build with disabled SIP (System Integrity Protection)? @Axel do you know if it will help?

Oksana.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 16, 2020, 5:59pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/3 "2020-02-16T17:59:02Z")

</div>

Please don’t disable SIP.

I don’t know why the build fails. Can you post the complete output of `make VERBOSE=1`?

Cheers, Axel

---

<div class="post-metadata">

**Author:** ![jaofferm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jaofferm/32/21649_2.png) [@jaofferm](https://root-forum.cern.ch/u/jaofferm)\
**Post date:** [February 17, 2020, 7:18pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/4 "2020-02-17T19:18:08Z")

</div>

Hi Oksana & Axel,

Thanks for the quick responses! I’ve attached the full output of `make VERBOSE=1` in a plaintext file.  
[root\_make\_error.txt](https://root-forum.cern.ch/uploads/short-url/la7GrcwV7UtQsQcCyeFZ7WVtbKN.txt) (270.0 KB)

---

<div class="post-metadata">

**Author:** ![lawrenceju](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/54ee81/32.png) [@lawrenceju](https://root-forum.cern.ch/u/lawrenceju)\
**Post date:** [March 3, 2020, 7:49am UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/5 "2020-03-03T07:49:47Z")

</div>

I encountered a similar problem. In my case, the error is:

> ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/local/Cellar/mysql/5.7.20/lib/libcrypto.dylib for architecture x86\_64

The solution is

> cd /usr/local/Cellar/mysql/5.7.20/lib/  
> rm libcrypto.dylib ; ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.dylib  
> rm libssl.dylib ; ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.dylib

The idea is to use the `libcrypoto.dylib` installed from `brew install openssl` instead of that from system.

Best regards  
Xiangyang

---

<div class="post-metadata">

**Author:** ![jaofferm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jaofferm/32/21649_2.png) [@jaofferm](https://root-forum.cern.ch/u/jaofferm)\
**Post date:** [March 6, 2020, 5:57pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/6 "2020-03-06T17:57:54Z")

</div>

Dear Xiangyang,

Thanks for the reply!

Unfortunately in my case, it seems like the issue is coming from `/usr/lib/libcrypto.dylib`, which is a system file that I cannot delete.

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [September 25, 2020, 2:09pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/7 "2020-09-25T14:09:59Z")

</div>

Was this ever resolved? Trying to build git tag -v6-220-02 from source fails on mac os with the same error:

[I] src/XrdVersion.hh successfully generated

ld: cannot link directly with dylib/framework, your binary is not an allowed client of /usr/lib/libcrypto.dylib for architecture x86\_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make[5]: \*\*\* [src/libXrdHttpUtils.1.0.0.dylib] Error 1

make[4]: \*\*\* [src/CMakeFiles/XrdHttpUtils.dir/all] Error 2

make[3]: \*\*\* [all] Error 2

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [September 25, 2020, 2:25pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/8 "2020-09-25T14:25:27Z")

</div>

well building with xrootd off resolves this for me (and I don’t believe I need that on my MacBook).

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [October 9, 2020, 3:17pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/9 "2020-10-09T15:17:49Z")

</div>

I’ve opened [https://github.com/xrootd/xrootd/issues/1302](https://github.com/xrootd/xrootd/issues/1302)

---

<div class="post-metadata">

**Author:** ![dhorns](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dhorns](https://root-forum.cern.ch/u/dhorns)\
**Post date:** [January 13, 2021, 3:27pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/10 "2021-01-13T15:27:43Z")

</div>

Did this ever get sorted out? I’ve been trying to compile root\_v6-22-00 from source on my iMac 10.15.7 via GitHub, and am running into the same dylib problem. I’ve turned off xrootd and I’ve also tried other versions of root (6-20-04 and 6-22-06) but to no avail.

---

<div class="post-metadata">

**Author:** ![jaofferm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jaofferm/32/21649_2.png) [@jaofferm](https://root-forum.cern.ch/u/jaofferm)\
**Post date:** [January 14, 2021, 4:53pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/11 "2021-01-14T16:53:00Z")

</div>

Hi @dhorns,  
At least on my end, I think that turning off `xrootd` for the build (as Mark did) solved the problem – this installation wasn’t being done on my own machine and I run an earlier OS, so unfortunately I don’t have the environment readily available for reference. It’s unfortunate that this didn’t work for you – I was going to suggest looking at Axel’s Github issue post above, but this also involves the build of `xrootd`. Perhaps it wouldn’t hurt to ping him and provide some more info on the issue you’re running into?  
Sorry to not be of more help.

---

<div class="post-metadata">

**Author:** ![dhorns](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dhorns](https://root-forum.cern.ch/u/dhorns)\
**Post date:** [January 14, 2021, 5:35pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/12 "2021-01-14T17:35:13Z")

</div>

Thanks @jaofferm. I’m really at a loss as to why this is happening and I’m surprised it isn’t more prevalent, but I’ll probably upgrade to to OS11 soon anyway. The pre-compiled code works, but for some strange reason I prefer to use code I’ve compiled myself.

---

<div class="post-metadata">

**Author:** ![dhorns](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dhorns](https://root-forum.cern.ch/u/dhorns)\
**Post date:** [January 28, 2021, 2:53pm UTC](https://root-forum.cern.ch/t/building-root-on-macos-catalina-10-15-3/37977/13 "2021-01-28T14:53:39Z")

</div>

Update: I’m running OS11.1 and with the newly updated Xcode 12.4 and ROOT v6-23-01, everything compiles and runs without ANY problems.
