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) 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
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?
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
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.
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.
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.