Installing GEANT4.9.3 Fsim

From New IAC Wiki
Jump to navigation Jump to search

Install CLHEP 2.0.4.5

create a subdirectory for CLHEP 2.0.4.5

mkdir ~/src/GEANT4/CLHEP/2.0.4.5
cd  ~/src/GEANT4/CLHEP/2.0.4.5

using CVS

set environmental variable CVSROOT to

export CVSROOT=:pserver:anonymous@clhep.cvs.cern.ch:/cvs/CLHEP

then checkout version tagged 2.0.4.5

cvs co -r CLHEP_2_0_4_5 CLHEP

run the bootstrap script to setup configuration files

./bootstrap

now run the configuration script with a prefix indicating where you want the libraries stored

./configure --prefix=~/src/GEANT4/CLHEP/2.0.4.5/CLHEP

after configuring type

make
make install

you should have the libraries installed in the subdirectory

bash-3.2$ ls ~/src/GEANT4/CLHEP/2.0.4.5/CLHEP/lib
libCLHEP-2.0.4.5.a                      libCLHEP-Matrix-2.0.4.5.a
libCLHEP-2.0.4.5.dylib                  libCLHEP-Matrix-2.0.4.5.dylib
libCLHEP-Cast-2.0.4.5.a                 libCLHEP-Random-2.0.4.5.a
libCLHEP-Cast-2.0.4.5.dylib             libCLHEP-Random-2.0.4.5.dylib
libCLHEP-Evaluator-2.0.4.5.a            libCLHEP-RandomObjects-2.0.4.5.a
libCLHEP-Evaluator-2.0.4.5.dylib        libCLHEP-RandomObjects-2.0.4.5.dylib
libCLHEP-Exceptions-2.0.4.5.a           libCLHEP-RefCount-2.0.4.5.a
libCLHEP-Exceptions-2.0.4.5.dylib       libCLHEP-RefCount-2.0.4.5.dylib
libCLHEP-GenericFunctions-2.0.4.5.a     libCLHEP-Vector-2.0.4.5.a
libCLHEP-GenericFunctions-2.0.4.5.dylib libCLHEP-Vector-2.0.4.5.dylib
libCLHEP-Geometry-2.0.4.5.a             libCLHEP.a
libCLHEP-Geometry-2.0.4.5.dylib         libCLHEP.dylib

Download GEANT 4.9.3

If its the current version you can download at

http://geant4.cern.ch/support/download.shtml

otherwise check the archives

http://geant4.cern.ch/support/source_archive.shtml


Get all the data files

you will have a tar/gziped file called

 geant4.9.3.p01.tar.gz

You should get all the data files as well

untar the source code

cd ~/src/GEANT4

tar -zxvf geant4.9.3.p01.tar.gz

you will find the subdirectory "geant4.9.3.p01" go into the subdirectory and make a data directory for the data files

cd geant 4.9.3.p01
mkdir data
cd data

no untar/unzip all the data files into the data subdirectory so it looks like this

bash-3.2$ ls data
G4ABLA3.0               G4NDL3.13               RealSurface1.0
G4EMLOW6.9              RadioactiveDecay3.2

Build version without Graphics

When building GEANT4 for the first time you should try and due it without visualization drivers. Once you are able to run exampleN02 then you probably have a a runable simulation program all you need to do after that is configure the visualization.

 cd ~/src/GEANT4/geant 4.9.3.p01
 ./Configure -build

answer the questions and say no to visualization


Go do something else for a while after you see that it is compiling.


./Configure -install

./Configure

source env.sh