Error while loading shared libraries: libCore.so

Hi,

When I compile my programming, I have this error . “error while loading
shared libraries: libCore.so: cannot open shared object file: No such
file or directory”. I don’t understand because I export the library.

export ROOTSYS=/cern/2011/root.5.28.00.gcc.4.1.2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib/
export PATH=$PATH:$ROOTSYS/bin
And when I check the path I find this library. Can you help me?

VIVE L’AMOUR!
try “ldd your_executable” and analyze the output - it will show you where it expects the libraries to reside.
BTW. Make sure that you are using the ROOT version that you really want (you may have multiple incompatible ROOT versions present in your PATH and LD_LIBRARY_PATH). Try “type root” (or “which root”) and “type rootcint” (or “which rootcint”). Some ROOT www pages advise the user to append ROOT related paths to relevant system variables. Actually, I believe, you should PREPEND them with ROOT related subdirectories (so that your ROOT-version-specific subdirectories are searched first):

export LD_LIBRARY_PATH=${ROOTSYS}/lib:${LD_LIBRARY_PATH} export PATH=${ROOTSYS}/bin:${PATH}
I am stupid. No?
Pepe Le Pew.