I use Linux Debian 2.2 version I have required environment variables for GEANT4 2.0. It is work well. But when I downloaded GEANT4 3.0 after compile all needed libs and novice example N03 and N04 I've got next error: libCLHEP.so: cannot open shared object file: No such file or directory I have correct env. variable for path nyhpen5:~/meco> echo $CLHEP_BASE_DIR /usr/local/cern/clhep
The problem is probably due to missing shared library object .so in your local path.
I assume this error occurs when you want to run an example. If so, this means that the CLHEP shared object is not found by the run time loader. You have to add the directory your CLHEP is in to the LD_LIBRARY_PATH environment variable: for csh, tcsh, ... type: setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:/usr/local/cern/clhep" for sh, bash, ... type export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/local/cern/clhep" Please let me know if this fixes your problem Gunter.Folger@cern.ch
One additional clarification. The directory added to LD_LIBRARY_PATH must be the directory containg libCLHEP.so, not the base directory of the CLHEP installation.