diff --git a/Lectures_my/KT2_2017/Ex2/install_geant.txt b/Lectures_my/KT2_2017/Ex2/install_geant.txt new file mode 100644 index 0000000..ba529ef --- /dev/null +++ b/Lectures_my/KT2_2017/Ex2/install_geant.txt @@ -0,0 +1,19 @@ +# 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