Geant4.8.0 Installation

  • Release Notes
  • Software Dependencies
  • New Installation flags:
    • G4VIS_BUILD_RAYTRACERX_DRIVER
    • G4VIS_USE_RAYTRACERX
  • Visualisation:
    • /vis/modeling/trajectories/create/drawByCharge
    • /vis/modeling/trajectories/create/drawByParticleID
  • Download of Source Code
    • download data files
      • G4NDL.3.8.tar.gz to /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/data/
      • G4EMLOW.3.0.tar.gz ==> Geant4.7.1
      • PhotonEvaporation.2.0.tar.gz ==> Geant4.8.1
      • RadiativeDecay.3.0.tar.gz ==> Geant4.8.1
      • G4ELASTIC.1.1.tar.gz ==> Geant4.8.1

gcc323-00

  • login as user gsisim
  • environment: . gcc32login
  • store geant4.8.0.tar.gz in /usr/local/pub/debian3.0/gcc323-00/sim
  • tar -zxvf geant4.8.0.tar.gz

CLHEP-1.9.2.2

  • get source from here
  • store clhep-1.9.2.2.tgz in /usr/local/pub/debian3.0/gcc323-00/sim/CLHEP
  • tar -zxvf clhep-1.9.2.2.tgz
  • cd 1.9.2.2/CLHEP
  • ./configure --prefix=/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2
  • make
  • make check
=====================================================
All 8 tests behaved as expected (1 expected failures)
=====================================================
  • make install

Visualisation packages

  • Dawn
  • David
  • OpenGL
  • Open Inventor
  • Wired

See Setup of Geant4.8.1

No, for Open Inventor let us try Coin, the PD Linux version of OI.
  • download Coin-2.4.5.tar.gz and store it at /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/
  • unpack
  • cd Coin-2.4.5
  • ./configure --prefix=$PWD
  • make
  • make install
gsisim@lxg0503:/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5> make install
config.status: creating include/Inventor/C/basic.h
config.status: include/Inventor/C/basic.h is unchanged
config.status: creating include/Inventor/system/gl.h.new
include/Inventor/system/gl.h is unchanged
make  install-recursive
make[1]: Entering directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
Making install in .
make[2]: Entering directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
make[3]: Entering directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
/bin/sh ./cfg/mkinstalldirs /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/Coin/conf
mkdir -p -- /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/Coin/conf
 /usr/bin/install -c -m 644 coin-default.cfg /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/Coin/conf/coin-default.cfg
/bin/sh ./cfg/mkinstalldirs /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/aclocal
mkdir -p -- /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/aclocal
 /usr/bin/install -c -m 644 cfg/coin.m4 /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/share/aclocal/coin.m4
/bin/sh ./cfg/mkinstalldirs
make[3]: Leaving directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
make[2]: Leaving directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
Making install in bin
make[2]: Entering directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin'
make[3]: Entering directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin'
/bin/sh ../cfg/mkinstalldirs /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin
 /usr/bin/install -c coin-config /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin/coin-config
/usr/bin/install: `coin-config' and `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin/coin-config' are the same file
make[3]: *** [install-dist_binSCRIPTS] Error 1
make[3]: Leaving directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5/bin'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin-2.4.5'
make: *** [install] Error 2
  • Solution: Create /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/Coin
  • configure with new prefix, compile, install
  • ok smile

setup and configuration

edit gsisimlogin (as kschwarz)

  • /usr/local/bin/gsisimlogin
    • for compiler gcc323-00 add
      • g4.8.0 ) . $ROOTSIM/config/g4.8.0.gsiconf.sh
      • ;;

create and edit g4.8.0.gsiconf.sh

  • load $ROOTSIM/config/g4.8.1.gsiconf.sh, modify and save with new name
  • new:
- G4INSTALL="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/include != X ] ; then 
G4INCLUDE="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/include"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/lib != X ] ; then 
G4LIB="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/lib"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.7.1/data/G4EMLOW3.0 != X ] ; then 
G4LEDATA="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.7.1/data/G4EMLOW3.0"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/data/G4NDL3.8 != X ] ; then 
NeutronHPCrossSections="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/data/G4NDL3.8"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2 != X ] ; then 
CLHEP_BASE_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2/include != X ] ; then 
CLHEP_INCLUDE_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2/include"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2/lib != X ] ; then 
CLHEP_LIB_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.2/lib"
- export IVROOT=$GSISIM/graphics/OI/Coin

  • ./Configure --build
    • see installation Geant4.8.1
  • ./Configure --install
Starting installation...


Installing headers...

Installing header files in /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.0/include ..

test

example N01 and N02 work, but OI does not work even with COIN. Therefore OI-library has been removed and OI support has been taken away from the configuration file. The problem still has to be solved. -- KilianSchwarz - 16 Dec 2005
Topic revision: r6 - 2006-08-03, KilianSchwarz
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding GSI Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)