Newer
Older
Lecture_repo / Lectures_my / KT2_2017 / Ex2 / install_geant.txt
@Marcin Chrzaszcz Marcin Chrzaszcz on 22 Mar 2017 626 bytes insturctions for geant4
# the path you need to adopt to your system.
cd /storage
mkdir Geant4
cd Geant4
wget http://cern.ch/geant4/support/source/geant4.10.03.p01.tar.gz
tar -xvf geant4.10.03.p01.tar.gz
mkdir geant4.10.3-build/
cmake -DCMAKE_INSTALL_PREFIX=/storage/Geant4/geant4.10.3-install /storage/Geant4/geant4.10.03.p01  -DGEANT4_INSTALL_DATA=ON
make -jN
sudo make install

# now here we finished instalation
# lets run example
source /storage/Geant4/geant4.10.3-install/share/Geant4-10.3.1/geant4make/geant4make.sh

cd /storage/Geant4/geant4.10.3-install/share/Geant4-10.3.1/examples/basic/B2/B2a
make
exampleB2a run1.mac
exampleB2a run2.mac