Error loading libraries

Hi all,
on MacOsX 10.13.4, I get the following error when running an executable that links ROOT libraries (v6-12-06) and some extensions:

dyld: Library not loaded: @rpath/libGui.so
Referenced from: /opt/wdcm/wdcm/MG/.libs/widendcm
Reason: image not found

the library path seems correct:

echo $LD_LIBRARY_PATH
/opt/wdcm/wdcm/lib:/opt/wdcm/dicom/lib:/opt/wdcm/root/v6-12-06/lib:/usr/local/lib:/lib

However, if I load the extended libraries from the root shell, everything is fine.

I guess then is has something to do with compiling widendcm, but I used the same compiler of the extended libraries, that are correctly loaded…

Any suggestion?

Thanks,
Piergiorgio

On Macs you have to set DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH. Could you please try with that? Cheers,

problem solved. thanks