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
To make sure that I’m using the version of ROOT on my machine that I intend to use, I have
in my .profile file and I get the following when I run “which root” and “which root-config”:
$ which root
$ which root-config
$ echo $LD_LIBRARY_PATH
$ echo $DYLD_LIBRARY_PATH
I also tried loading a few libraries in ROOT, forgetting KDetSim
| 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  gSystem->Load(“libPhysics.so”)
root  gSystem->Load(“libHist.so”)
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.