hepsun17> cd ../N03 hepsun17> gmake Making dependency for file exampleN03.cc... Making dependency for file src/ExN03VisManager.cc ... Making dependency for file src/ExN03SteppingVerbose.cc ... Making dependency for file src/ExN03SteppingAction.cc ... Making dependency for file src/ExN03RunAction.cc ... Making dependency for file src/ExN03PrimaryGeneratorMessenger.cc ... Making dependency for file src/ExN03PrimaryGeneratorAction.cc ... Making dependency for file src/ExN03PhysicsList.cc ... Making dependency for file src/ExN03EventActionMessenger.cc ... Making dependency for file src/ExN03EventAction.cc ... Making dependency for file src/ExN03DetectorMessenger.cc ... Making dependency for file src/ExN03DetectorConstruction.cc ... Making dependency for file src/ExN03CalorimeterSD.cc ... Making dependency for file src/ExN03CalorHit.cc ... Compiling ExN03CalorHit.cc ... Compiling ExN03CalorimeterSD.cc ... Compiling ExN03DetectorConstruction.cc ... Compiling ExN03DetectorMessenger.cc ... Compiling ExN03EventAction.cc ... Compiling ExN03EventActionMessenger.cc ... Compiling ExN03PhysicsList.cc ... Compiling ExN03PrimaryGeneratorAction.cc ... Compiling ExN03PrimaryGeneratorMessenger.cc ... Compiling ExN03RunAction.cc ... Compiling ExN03SteppingAction.cc ... Compiling ExN03SteppingVerbose.cc ... Compiling ExN03VisManager.cc ... Creating/replacing object files in /usr/hep0/slater/cern01/3/geant4/tmp/SUN-CC5/exampleN03/libexampleN03.a Compiling exampleN03.cc ... Using granular libraries ... Linking exampleN03 ... ld: fatal: library -l/usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a: not found ld: fatal: File processing errors. No output written to /usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN03 gmake: *** [/usr/hep0/slater/cern01/3/geant4/bin/SUN-CC5/exampleN03] Error 1 hepsun17> ls -l /usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a -rw-r--r-- 1 slater 897988 Jul 19 10:32 /usr/hep0/slater/cern01/2/CLHEP/libCLHEP-CC.a
You most problably have a non-standard installation of CLHEP in your system. Geant4 assumes the following setup: CLHEP_BASE_DIR = <your-CLHEP-path> CLHEP_INCLUDE_DIR = $CLHEP_BASE_DIR/include CLHEP_LIB_DIR = $CLHEP_BASE_DIR/lib <-- check this! CLHEP_LIB = CLHEP <-- here you have 'CLHEP-CC' In case of non-standard setup, you should override those environment variables, according to the installation in your system.