Dyld: Library not loaded: @rpath /libGui.so The reason is that MacOS now comes by default with certain security settings which, among other things, unset the DYLIBLIBRARYPATH. If your executable look for libraries in non-standard locations they won’t run. Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/x11 In directory vz-cvs-3.sog:/tmp/cvs-serv28601 Modified Files: mlterm.info Log Message: Revision bump.
Hi,
Dyld Library Not Loaded @rpath/libg4tree.dylib
I am attempting to build a software framework that uses ROOT and Geant4 on OS X, which is already working
fine on Linux. I think I am almost there but I am running into some confusing issues involving rpath and linking/loading.
Everything seems to compile and link fine, but then when I run my sim executable I get this error message…
I suspect that the ROOT libs can’t be found at runtime, so I turn on DYLD_PRINT_LIBRARIES to debug.
But the loader seems to be finding the library just fine!
Investigating further by using otool -l sim-app | grep LC_RPATH -A2
it seems that the directories of the other libraries have rpath entries in the executable but the ROOT dir is not in there.
The ROOT lib dir is set in DYLD_LIBRARY_PATH but it doesn’t seem to be picked up from there.
From what I can tell, Geant4 is setting the rpath explicitly in the binary, which allows its libraries to be found, but this is not what ROOT is doing.
This is probably not a ROOT problem or bug, but I’m wondering if anyone can help me figure out what is going on here…why would it be that the loader finds the ROOT libraries initially but then there is a runtime error indicating the libraries were not found?
If needed I can paste in the full (ugly!) compilation and linking commands should they be useful.
Thanks.
Dyld Library Not Loaded @rpath/libcore.so
–Jeremy