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
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.