Problem 180 - error in loading shared libraries: libCLHEP.so
Summary: error in loading shared libraries: libCLHEP.so
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: config (show other problems)
Version: other
Hardware: PC Linux
: P2 normal
Assignee: Gunter.Folger
URL:
Depends on:
Blocks:
 
Reported: 2000-12-21 09:22 CET by rashid
Modified: 2001-01-22 09:53 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.