Geant4.8.2 Installation

gcc335-13 (32bit)

CLHEP-2.0.3.1

  • get source code
  • store clhep-2.0.3.1.tgz in /usr/local/pub/debian3.1/gcc335-13/sim/CLHEP
  • tar -zxvf clhep-2.0.3.1.tgz
  • cd 2.0.3.1/CLHEP/
  • ./configure --prefix=/usr/local/pub/debian3.1/gcc335-13/sim/CLHEP/2.0.3.1/
  • make
  • make check
=====================================================
All 8 tests behaved as expected (1 expected failures)
=====================================================
  • make install

download of source code

  • login as user rootmgr
  • store geant4.8.2.p01.tar.gz in /usr/local/pub/debian3.1/gcc335-13/sim
  • tar -zxvf geant4.8.2.p01.tar.gz
  • download data files and store in /usr/local/pub/debian3.1/gcc335-13/sim/geant4.8.2.p01/data

visualisation packages

Dawn

  • Dawn version 3_88a
    • installed in /usr/local/pub/debian3.1/gcc335-13/sim/graphics/dawn_3_88a

David

  • David version 1_36a
    • installed in /usr/local/pub/debian3.1/gcc335-13/sim/graphics/david/david_1_36a

OpenGL

  • provided by Debian in /usr

Open Inventor

  • not used

Wired

java version "1.4.2_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)

setup and configuration of Geant4.8.2

edit gsisimlogin (as kschwarz)

  • /usr/local/bin/gsisimlogin
    • for compiler gcc335-13 add:
                g4.8.2 ) . $ROOTSIM/config/g4.8.2.gsiconf.sh
                   ;;

  • edit and create g4.8.2.gsiconf.sh

note:
add to GNUMakefile:
LDFLAGS+=-L/usr/lib -lfreetype

gcc411-21 (64bit)

CLHEP-2.0.3.1

  • get source code
  • store clhep-2.0.3.1.tgz in /usr/local/pub/debian4.0/gcc411-21/sim/CLHEP
  • tar -zxvf clhep-2.0.3.1.tgz
  • cd 2.0.3.1/CLHEP/
  • ./configure --prefix=/usr/local/pub/debian4.0/gcc411-21/sim/CLHEP/2.0.3.1/
  • make
  • make check
=====================================================
All 8 tests behaved as expected (1 expected failures)
=====================================================
  • make install

download of source code

  • see above
  • cd /usr/local/pub/debian4.0/gcc411-21/sim
  • cp /usr/local/pub/debian3.1/gcc335-13/sim/geant4.8.2.p01.tar.gz .
  • data dirs in 32bit environment. They can be reused.

visualisation packages

Dawn

  • cd /usr/local/pub/debian4.0/gcc411-21/sim/graphics/dawn_3_88a
  • cp /usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a.taz .
  • tar -zxvf dawn_3_88a.taz
  • cd dawn_3_88a
  • make clean
  • make guiclean
  • configure_xwin
note: use g++ !!!
  • make/ make install
but:
kschwarz@lxb255:~$ wish
Application initialization failed: Can't find a usable init.tcl in the following directories:
    /usr/share/tcl8.3 /usr/local/grid/GLITE/3.0.5/glite/usr/lib/tcl8.3 /usr/local/grid/GLITE/3.0.5/glite/lib/tcl8.3 /usr/local/grid/GLITE/3.0.5/glite/usr/library /usr/local/grid/GLITE/3.0.5/glite/library /usr/local/grid/GLITE/3.0.5/glite/tcl8.3/library /usr/local/grid/GLITE/3.0.5/tcl8.3/library /usr/share/tcl8.3


This probably means that Tcl wasn't installed properly.

  • ticket submitted
  • this was a PATH issue. Wish was taken from gLite and not from the system. Fix: remove the gLite environment from the user.

David

  • David version 1_36a
    • cd /usr/local/pub/debian4.0/gcc411-21/sim/graphics/david
    • cp /usr/local/pub/debian3.0/gcc323-00/sim/graphics/david/david_1_36a.taz .
    • tar -zxvf david_1_36a.taz
    • cd david_1_36a
    • make -f Makefile.GNU_g++
    • check with ls -F david, if a binary has been created
    • do the tests in README.html ==> ok

OpenGL

  • provided by Debian in /usr

Open Inventor

  • not used

Wired

java version "1.4.2_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)

setup and configuration of Geant4.8.2

edit gsisimlogin (as kschwarz)

  • /usr/local/bin/gsisimlogin
    • for compiler gcc411-21 add:
if [ "$GSI_COMPILER_CC" = "gcc411-21" ]
  then
  # base root directory for gcc 4.1.1 sim packages
  export ROOTSIM=/usr/local/pub/debian4.0/gcc411-21/sim
  virtualmc=`echo $1 | sed "s/\-vmc.*/\-vmc/g"`

  if [ "$virtualmc" = "-vmc" ]
    then
    Option=$2
    echo " Environment for the Virtual Monte Carlo gcc 4.1 loaded now!.. "

    echo "   "
    echo " ---------------------------------------------------------------- "
    echo " ---------------- Setup with Virtual MC ------------------------- "
    echo " Root version: " $ROOTSYS
    echo " VMCHOME " $VMCHOME
    echo " ---------------------------------------------------------------- "
    echo " ---------------------------------------------------------------- "
    echo " "

    else
        Option=$1
            case $Option in
               dev ) . $ROOTSIM/config/g4.8.1.gsiconf.sh
                   ;;
                dev ) echo "this version is not available for compiler " $GSI_COMPILER_CC
                   ;;
                new ) echo "this version is not available for compiler " $GSI_COMPILER_CC
                   ;;
                prod ) echo "this version is not available for compiler " $GSI_COMPILER_CC
                  ;;
                old ) echo "this version is not available for compiler " $GSI_COMPILER_CC
                   ;;
                g4.8.1 )  echo "this version is not available for compiler " $GSI_COMPILER_CC
                   ;;
                g4.8.2 ) . $ROOTSIM/config/g4.8.2.gsiconf.sh
                   ;;
                *) echo " -I(gsisimlogin): select a geant4 version "
                   echo " use option (-h) for help "
                echo " "
                ;;
            esac
  fi

fi

  • edit and create g4.8.2.gsiconf.sh
generalise config scripts by adding environment variables.
e.g. replace
G4INSTALL="/usr/local/pub/debian4.0/gcc411-21/sim/geant4.8.2"
by
G4INSTALL="/usr/local/pub/$GSI_OS_FLAVOR$OS/$GSI_COMPILER_CC/sim/geant4.8.2"

  • cd $G4INSTALL, ./Configure -build
    • chose debug mode, build shared libraries, no static, build global compound and granular, use granular
  • test with N01 and N02
  • update /dev/prod/old
  • update webpage
  • update forum
  • remove 1 old installation

-- KilianSchwarz - 14 Feb 2007

Topic revision: r16 - 2007-10-26, 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)