Problem 437 - can't find libCLHEP-g++.1.8.0.0.so - but I set LD_LIBRARY_PATH
Summary: can't find libCLHEP-g++.1.8.0.0.so - but I set LD_LIBRARY_PATH
Status: RESOLVED WORKSFORME
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 4.1
Hardware: PC Linux
: P2 critical
Assignee: Makoto.Asai
URL:
Depends on:
Blocks:
 
Reported: 2002-12-10 14:19 CET by bloser
Modified: 2007-04-08 18:40 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description bloser 2002-12-10 14:19:47 CET
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
Comment 1 Gabriele Cosmo 2002-12-18 16:32:59 CET
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.