Message: Re: Error in running example A01 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Error in running example A01 

Forum: Installation and Configuration
Re: None Error in running example A01 (Fahmida khanam)
Re: None Re: Error in running example A01 (Michael H. Kelsey)
Date: 06 Nov, 2010
From: Fahmida khanam <Fahmida khanam>

Yes I have source the env.sh file in the same terminal running A01. The environment is as : ------------------------------------------------------ On this machine the G4SYSTEM=Darwin-g++ On this machine the G4INSTALL=/Users/fumi/geant4/geant4.9.3.p01 On this machine the G4LIB=/Users/fumi/geant4/geant4.9.3.p01/lib On this machine the G4LEVELGAMMADATA=/Users/fumi/geant4/geant4.9.3.p01/data/PhotonEvaporation2.0 On this machine the G4RADIOACTIVEDATA=/Users/fumi/geant4/geant4.9.3.p01/data/RadioactiveDecay3.2 On this machine the G4LEDATA=/Users/fumi/geant4/geant4.9.3.p01/data/G4EMLOW6.9 On this machine the G4NEUTRONHPDATA=/Users/fumi/geant4/geant4.9.3.p01/data/G4NDL3.13 On this machine the G4ABLADATA=/Users/fumi/geant4/geant4.9.3.p01/data/G4ABLA3.0 On this machine the G4REALSURFACEDATA=/Users/fumi/geant4/geant4.9.3.p01/data/RealSurface1.0 On this machine the CLHEP_BASE_DIR=/Users/fumi/CLHEP On this machine the CLHEP_INCLUDE_DIR=/Users/fumi/CLHEP/include On this machine the CLHEP_LIB_DIR=/Users/fumi/CLHEP/lib On this machine the CLHEP_LIB=CLHEP On this machine the G4UI_USE_TCSH=1 On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1 On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1 On this machine the G4VIS_USE_OPENGLX=1 On this machine the G4VIS_USE_RAYTRACERX=1 On this machine the XMFLAGS= On this machine the XMLIBS= On this machine the XMFLAGS= On this machine the XAWFLAGS= On this machine the XAWLIBS= On this machine the G4LIB_BUILD_SHARED=1

DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. NOTE : you should verify that the correct path for the CLHEP library

/Users/fumi/CLHEP/lib

is included in the dynamic library search path ahead of any other installations of CLHEP on your system that may be referenced by this path.

------------------------------------------------------------

I also couldn't run any other examples, e.g. for N01 the error is :

Linking exampleN01 ld: library not found for -lG4digits collect2: ld returned 1 exit status

Though I have G4detector directory in : "/Users/fumi/geant4/geant4.9.3.p01/tmp/Darwin-g++/G4detector" and G4digit directory in: "/Users/fumi/geant4/geant4.9.3.p01/tmp/Darwin-g++/G4digits"

If these are the directories its looking for..

Thanks, Fumi

On Sat, 06 Nov 2010 22:54:51 GMT, Michael H. Kelsey wrote:

> On Sat, 06 Nov 2010 15:48:43 GMT, Fahmida khanam wrote:
> 
> > I have recently installed GEANT4.9.3.p01 in my new macbook pro i5. The
> > installation finished without any error message. But when I tried to run
> > the example A01, I got this error:
> > 
> > Linking A01app ld: library not found for -lG4detector collect2: ld
> > returned 1 exit status make: ***
> > [/Users/fumi/g4work/bin/Darwin-g++/A01app] Error 1
> 
> Did you remember to |source env.csh| or |. env.sh| from your G4
> installation directory, in the same process where you did the A01 build?
> You have to have all the G4 environment variables defined, and you have
> to have DYLD_LIBRARY_PATH set, when you do the application build.
> 

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Error in running example A01   (Mike Kelsey - 06 Nov, 2010)
(_ None: Re: Error in running example A01   (Fahmida khanam - 06 Nov, 2010)
(_ None: Re: Error in running example A01   (Mike Kelsey - 06 Nov, 2010)
(_ None: Re: Error in running example A01   (Fahmida khanam - 07 Nov, 2010)
(_ None: Re: Error in running example A01   (Mike Kelsey - 07 Nov, 2010)
 Add Message Add Message
to: "Re: Error in running example A01"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]