Hi. I've just installed geant4 4.1 on a PC with RedHat 7.3 (though I aliased g++ to the 2.95.3 version before compiling). I can compile the first example OK, but when I try to run it I get: exampleN01: error while loading shared libraries: libCLHEP-g++.1.8.0.0.so: cannot open shared object file: No such file or directory According to the FAQ, this means I need to add CLHEP_LIB_DIR to my LD_LIBRARY_PATH. But I already have, as follows: hofbrau [37] [bloser]: echo $LD_LIBRARY_PATH /usr/lib:/usr/openwin/lib:/usr/lib/X11:/usr/lang/SC1.0:/usr1/local/lib: /local/data/hofbrau/bloser/geant4/CLHEP/lib hofbrau [38] [bloser]: ls /local/data/hofbrau/bloser/geant4/CLHEP/lib libCLHEP-g++.1.8.0.0.a libCLHEP-g++.1.8.0.0.so So I don't understand. Any ideas? Let me know if you need more info on my environment here, but I believe all the environment variables are set correctly, for example: CLHEP_BASE_DIR=/local/data/hofbrau/bloser/geant4/CLHEP CLHEP_INCLUDE_DIR=/local/data/hofbrau/bloser/geant4/CLHEP/include CLHEP_LIB_DIR=/local/data/hofbrau/bloser/geant4/CLHEP/lib CLHEP_LIB=CLHEP-g++.1.8.0.0 THanks in advance... Peter Bloser
It looks like your environment is indeed set correctly. If so, verify that the CLHEP .so library has been built consistently with the compiler/system you're using. Let us know if the problem persists.