HOSTNAME$ su - #become root HOSTNAME# pacman -S xerces-c #install xerces-c HOSTNAME# mkdir /geant4 & cd /geant4 #make /geant4 folder and change in to it. HOSTNAME# chown -R user /geant4 #make user the owner of the /geant4 directory HOSTNAME# exit #return to normal user HOSTNAME$ cd /geant4 #change in to the new directory # download the geant4 source code HOSTNAME$ wget http://geant4.web.cern.ch/geant4/support/source/geant4.10.04.tar.gz #check if there are newer versions! HOSTNAME$ tar -xf geant #extract the source code HOSTNAME$ ln -s geant4.10.04 source #make a symbolic link from geant4.10.04 to source HOSTNAME$ mkdir build install #make build and install directories HOSTNAME$ cd build #change in to the build director # configure the build process: HOSTNAME$ cmake -DCMAKE_INSTALL_PREFIX=/geant4/install -DGEANT4_USE_GDML=ON -DGEANT4_INSTALL_DATA=ON /geant4/source/ HOSTNAME$ make -j4 #build geant4 with 4 threads HOSTNAME$ make install #install geant4 HOSTNAME$ source /geant4/install/bin/geant4.sh