Problem 180

Summary: error in loading shared libraries: libCLHEP.so
Product: Geant4 Reporter: rashid
Component: configAssignee: Gunter.Folger
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: other   
Hardware: PC   
OS: Linux   

Description rashid 2000-12-21 09:22:04 CET
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
Comment 1 Gabriele Cosmo 2001-01-08 08:12:59 CET
The problem is probably due to missing shared library object .so
in your local path.
Comment 2 Gunter.Folger 2001-01-15 00:59:59 CET
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
Comment 3 Gunter.Folger 2001-01-22 09:53:59 CET
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.