Hello all,
I am trying to install the KDetSim library (http://kdetsim.org) on my MacBook Pro (macOS Mojave Version 10.14.6). I am running ROOT from a homebrew installation (ROOT 6.22/08).
After extracting the zip file from the KDetSim website, I tried running both “make -f makeLinuxMac KDetSimMacOS” and "make -f makeLinuxMacRoot6 KDetSimMacOS " from inside the KDetSim folder. The code does not compile and I receive an error about
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [KDetSimMacOS] Error 1
Various checks:
To make sure that I’m using the version of ROOT on my machine that I intend to use, I have
source /usr/local/Cellar/root/6.22.08/bin/thisroot.sh
in my .profile file and I get the following when I run “which root” and “which root-config”:
$ which root
/usr/local/Cellar/root/6.22.08/bin/root
$ which root-config
/usr/local/Cellar/root/6.22.08/bin/root-config
Also,
$ echo $LD_LIBRARY_PATH
/usr/local/Cellar/root/6.22.08/lib/root:/usr/local/Cellar/root/6.22.08/lib/root:/usr/local/Cellar/root/6.22.08/lib/root
and
$ echo $DYLD_LIBRARY_PATH
/usr/local/Cellar/root/6.22.08/lib/root:/usr/local/Cellar/root/6.22.08/lib/root:/usr/local/Cellar/root/6.22.08/lib/root
I also tried loading a few libraries in ROOT, forgetting KDetSim
$ root
| Welcome to ROOT 6.22/08 https://root.cern |
| © 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosx64 on Mar 10 2021, 14:20:04 |
| From tags/v6-22-08@v6-22-08 |
| Try ‘.help’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/’.q’ |
root [0] gSystem->Load(“libPhysics.so”)
(int) 0
root [1] gSystem->Load(“libHist.so”)
(int) 0
Is it possible that something went wrong with my homebrew installation of ROOT? The paths point to the same Cellar/root/6.22.08 installation so it may not be an issue with KDetSim failing to find the proper installation.
Any help is appreciated! Thank you in advance. Perhaps I’m missing something simple.