Message: Problems with Ex. B1 (G4 9.6 on Ubuntu 12.04) Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Problems with Ex. B1 (G4 9.6 on Ubuntu 12.04) 

Forum: Documentation and Examples
Date: 17 Jan, 2014
From: <fka>

Hello,

sorry for posting this again (as in the other forum category), but it might have been the wrong one.

I have installed Geant4 9.6 on Ubuntu 12.04 via

cmake -DCMAKE_INSTALL_PREFIX=/home/fka/geant/geant-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_OPENGL_X11=ON /home/fka/geant/geant4.9.6.p02

and it built and installed fine (including downloading the required data that were put in /home/fka/geant/geant-install/share/Geant4-9.6.2/data

when I run example B1 cmake -DGeant4_DIR=/home/fka/geant/geant-install/lib/Geant4-9.6.2 /home/fka/geant/geant4.9.6.p02/examples/basic/B1/

it all goes according to plan, but executing ./exampleB1 gives me

*** Fatal error: Missing mandatory data for this simulation engine ***
*** Fatal Exception *** core dump ***
-------- EEEE -------- G4Exception-END --------- EEEE ------- *** G4Exception: Aborting execution *** Aborted (core dumped)

despite the fact that the data is located in the correct directory. I also checked geant.sh in the geant-install/bin directory and it seems to point to the correct location.

I tried re-running cmake -DGEANT4_INSTALL_DATA=ON but that did not change the problem. All the settings seem to be fine:
env | grep G4

G4LEVELGAMMADATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/PhotonEvaporation2.3
G4INSTALL=/home/fka/geant/geant-install/share/Geant4-9.6.2/geant4make
G4INCLUDE=/home/fka/geant/geant-install/include/Geant4
G4NEUTRONXSDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/G4NEUTRONXS1.2
G4LEDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/G4EMLOW6.32
G4NEUTRONHPDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/G4NDL4.2
G4RADIOACTIVEDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/RadioactiveDecay3.6
G4LIB=/home/fka/geant/geant-install/lib/Geant4-9.6.2
G4LIB_BUILD_SHARED=1
G4PIIDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/G4PII1.3
G4SAIDXSDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/G4SAIDDATA1.1
G4VIS_USE_OPENGLX=1
G4UI_USE_TCSH=1
G4SYSTEM=Linux-g++
G4REALSURFACEDATA=/home/fka/geant/geant-install/share/Geant4-9.6.2/data/RealSurface1.0

G4WORKDIR=/home/fka/geant4_workdir

G4LIB_USE_ZLIB=1
and ls in the data directory gives me (as expected)
~/geant/geant-install/share/Geant4-9.6.2/data$ ls
G4EMLOW6.32
G4NEUTRONXS1.2
G4SAIDDATA1.1
RadioactiveDecay3.6
G4NDL4.2
G4PII1.3
PhotonEvaporation2.3
RealSurface1.0

so it's all where it's supposed to be, but still, executing gives me the above mentioned error

I appreciate any tips. Thanks

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

1 None: Re: Problems with Ex. B1 (G4 9.6 on Ubuntu 12.04)   (Ivana Hrivnacova - 20 Jan, 2014)
(_ None: Re: Problems with Ex. B1 (G4 9.6 on Ubuntu 12.04)   (fka - 20 Jan, 2014)
 Add Message Add Message
to: "Problems with Ex. B1 (G4 9.6 on Ubuntu 12.04)"

 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 ]