Problem 787 - Errors in N01
Summary: Errors in N01
Status: RESOLVED WORKSFORME
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 7.1
Hardware: PC Linux
: P2 critical
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2005-08-28 10:16 CEST by fengyx
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 fengyx 2005-08-28 10:16:04 CEST
Dear Sir,

After I install geant4.7.1 in my PC with Linux 9.0 system without problem, I
tried to test it with example/novice/N01.

gmake works well without any problem as seen below, but it goes wrong
when I try to run it.

==================================================================
 gmake
Making dependency for file exampleN01.cc ...
Making dependency for file src/ExN01PrimaryGeneratorAction.cc ...
Making dependency for file src/ExN01PhysicsList.cc ...
Making dependency for file src/ExN01DetectorConstruction.cc ...
Compiling ExN01DetectorConstruction.cc ...
Compiling ExN01PhysicsList.cc ...
Compiling ExN01PrimaryGeneratorAction.cc ...
Creating/replacing object files in
/home/fengyx/geant4/tmp/Linux-g++/exampleN01/libexampleN01.a ...
Compiling exampleN01.cc ...
Using granular libraries ...
Linking exampleN01 ...
-----------------------------------------------------------------

exampleN01
/home/fengyx/geant4/bin/Linux-g++/exampleN01: error while loading shared
libraries: libG4run.so: cannot open shared object file: No such file or directory
========================================================================

Could you please tell me how to fix this problem?

Thanks,

Yuxin
Comment 1 Gabriele Cosmo 2005-08-29 02:10:59 CEST
Looks like you installed shared libraries of Geant4 and do not have the path to
where they're installed specified in the variable LD_LIBRARY_PATH.
Check that G4LIB_BUILD_SHARED is set in your environment when building the
example and eventually add the path $G4LIB/G4SYSTEM to LD_LIBRARY_PATH.