Hi,
I installed Geant4-10.5.1 on server running Scientific Linux release 7.6 (Nitrogen).
It compile and build target, but when I try to run I get this error massage:
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PART70000
issued by : G4NuclideTable
G4ENSDFSTATEDATA environment variable must be set
*** Fatal Exception *** core dump ***
Segmentation fault
[arpad@n03 build]$ ./exampleB1
Available UI session types: [ GAG, tcsh, csh ]
-------- EEEE ------- G4Exception-START -------- EEEE -------
*** G4Exception : PART70000
issued by : G4NuclideTable
G4ENSDFSTATEDATA environment variable must be set
*** Fatal Exception *** core dump ***
Segmentation fault
I tried to fix with next commands:
export G4ENSDFSTATEDATA=/usr/local/share/Geant4-10.5.1/data
export G4ENSDFSTATEDATA=/usr/local/share/Geant4-10.5.1/data/G4ENSDFSTATE2.2
export G4PARTICLEXSDATA=/usr/local/share/Geant4-10.5.1/data/G4PARTICLEXS1.1
export G4LEDATA=/usr/local/share/Geant4-10.5.1/data/G4EMLOW7.7
export G4LEVELGAMMADATA=/usr/local/share/Geant4-10.5.1/data/PhotonEvaporation5.3
After this lines i got another error massage:
In /root/geant/geant4.10.05.p01/source/processes/hadronic/models/particle_hp/src/G4ParticleHPInelastic.cc, line 86:
===> Please set the environement variable G4NEUTRONHPDATA to point to the neutron cross-section files.
terminate called after throwing an instance of ‘G4HadronicException’
what(): std::exception
Aborted
What could be a problem? How can I fix it?
Sorry for a very long massage, I’m quite a new user so I don’t have much experience.
As you did for the other variables, you’ll need to set the G4NEUTRONHPDATA environment variable to point to the G4NDL4.5 directory. With the install tree layout, the following should work:
Hello, dear all!
I have the same/twin problem at compilled my project:
NeutronHP: /Inelastic file for Z = 8, A = 18 is not found and NeutronHP will use /opt/geant4/geant4.10.05.p01/share/Geant4-10.5.1/data/G4NDL4.5/Inelastic/CrossSection/8_17_Oxygen
In /opt/geant4/geant4.10.05.p01/source/processes/hadronic/models/particle_hp/src/G4ParticleHPInelasticData.cc, line 79:
===> Please setenv G4PROTONHPDATA to point to the proton cross-section files.
terminate called after throwing an instance of ‘G4HadronicException’
what(): std::exception
Аварийный останов (стек памяти сброшен на диск)
And i corrected my bashrc-file writing this line there:
export G4NEUTRONHPDATA=/opt/geant4/geant4.10.05.p01/share/Geant4-10.5.1/data/G4NDL4.5
Downloaded this library(G4TENDL1.3.2) from of.site geant4 and i have put it into:
/geant4/geant4.10.05.p01/share/Geant4-10.5.1/data/
After that i had written these lines in my bashrc-file too:
[quote=“bmorgan, post:2, topic:357, full:true”] As you did for the other variables, you’ll need to set the G4NEUTRONHPDATA environment variable to point to the G4NDL4.5 directory. With the install tree layout, the following should work:
Hello, I have been using Geant4 virtual machine on my Mac but recently decided to install the latest version on my Mac. After successful installation I tried to run the B1 example and I came across this problem:
You shouldn’t need to set the Geant4 envvars by hand yourself. Your installation should include the script source <g4install>/bin/geant4.sh, which will set all of them according to the installation you did.
Does this mean I will have to run all my simulation within the path?
The command: source /usr/local/bin/geant4.sh only works within the bin/ directory. If I do that outside this directory I get the following error message:
or you can combine those on one command line with semicolons:
pushd /usr/local/bin; source geant4.sh; popd
In general, we strongly discourage installing Geant4 under /usr/local. It’s usually better to specify a Geant4 installation area, like /usr/local/Geant4/<g4version> or something.