Geant4.8.1 Installation

gcc323-00

  • login as user gsisim
  • environment . gcc32login
  • store geant4.8.1.tar.gz in /usr/local/pub/debian3.0/gcc323-00/sim
  • tar -zxvf geant4.8.1.tar.gz
  • download data files and store in /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data
    • G4NDL version 3.9 neutron data files with thermal cross sections
    • G4EMLOW4.0 data files for low energy electromagnetic processes
    • PhotonEvaporation.2.0.tar data files for photon evaporation - version 2.0
    • RadiativeDecay.3.0 data files for radioactive decay hadronic processes - version 3.0
  • G4ELASTIC1,1 points still to G4ELASTICDATA=/usr/local/pub/debian3.0/gcc323-00/sim/geant4.7.1/data/G4ELASTIC1.1

CLHEP-1.9.2.3

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

Visualisation packages

Dawn

  • Download and Installation Instructions
  • download dawn_3_88a
  • store in /usr/local/pub/debian3.0/gcc323-00/sim/graphics
  • tar -zxvf dawn_3_88a.taz
  • cd dawn_3_88a
  • . gcc32login
  • make clean
  • make guiclean
  • configure_xwin
    • C++ compiler name: gcc
    • optimisation option: -O2
    • Tcl/Tk window shell name: wish
    • include directory for Xlib: -I/usr/X11R6/include
    • input lib directory for xlib:
    • -L/usr/X11R6/lib
    • installation dir: /usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a/bin
    • system: 0 (default) ==> 4 (RedHat)
    • remote visualitaion ?: y
  • make
FRClientServer.cc: In member function `int FRClientServer::AcceptUnix()':
FRClientServer.cc:122: invalid conversion from `int*' to `socklen_t*'
FRClientServer.cc: In member function `int FRClientServer::AcceptINET()':
FRClientServer.cc:314: invalid conversion from `int*' to `socklen_t*'
make: *** [FRClientServer.o] Error 1
  • try remote visualisation: n
  • does not work !!!
  • new try:
sisim@lxg0503:/usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a> ./configure_min
********************************************************
* Configure script to generate Makefile of DAWN        *
*                       ------ device independent mode *
********************************************************


Input C++ compiler name (e.g. g++, no default).
 :gcc
Input optimization option (e.g. -O2, no default)
 :-O2
Input Tcl/Tk window shell name
  (e.g. wish, no default): wish
Input directory to install executable files
  (e.g. /usr/local/bin, no default ): /usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a/bin

Old Makefile is deleted.
New Makefile is created.

C++ compiler            : gcc
Optimization level      : -O2
Tcl/Tk window shell     : wish

Type  "make" to start compilation.
  • ok, this one works using g++, not gcc !!!
  • create /usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a/bin
  • make install
  • export DAWN_PS_PREVIEWER "gv"
  • testing dawn:
  • cd /usr/local/pub/debian3.0/gcc323-00/sim/graphics/dawn_3_88a/PRIM_DATA
  • ../bin/dawn primitives2.prim ==> ok smile

David

  • David Homepage and download
  • store david_1_36a.taz at /usr/local/pub/debian3.0/gcc323-00/sim/graphics/david
  • 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 smile

OpenGL

  • provided by Debian in /usr

Open Inventor

  • download the OI sources from here
  • as gsisim store in /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI
    • inventor-2.1.5-10.src.tar.gz
  • unpack
  • mv inventor inventor-2.1.5-10
  • environment
    • export IVROOT=/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/inventor-2.1.5-10
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$IVROOT/usr/lib
    • export LIBTYPE=debug
    • cd $IVROOT
    • gmake install
    • use Freetype fonts and compile again
      • export FREETYPE=1
    • for using fonts:
      • run linkType1.sh in libFL/src as root
      • work together with Linux group

Wired

ok, enough visualisation smile

setup configuration

edit gsisimlogin (as kschwarz)
  • /usr/local/bin/gsisimlogin
    • for compiler gcc323-00 add
      • g4.8.1 ) . $ROOTSIM/config/g4.8.1.gsiconf.sh
      • ;;

create and edit g4.8.1.gsiconf.sh

  • load $ROOTSIM/config/g4.7.1.gsiconf.sh, modify and save with new name
  • new:
- G4INSTALL="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/include != X ] ; then 
G4INCLUDE="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/include"     
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib != X ] ; then 
G4LIB="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/PhotonEvaporation2.0 != X ] ; then 
G4LEVELGAMMADATA="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/PhotonEvaporation2.0"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/RadiativeDecay3.0 != X ] ; then 
G4RADIOACTIVEDATA="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/RadiativeDecay3.0"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4EMLOW4.0 != X ] ; then 
G4LEDATA="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4EMLOW4.0"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4NDL3.9 != X ] ; then 
NeutronHPCrossSections="/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4NDL3.9"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3 != X ] ; then 
CLHEP_BASE_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/include != X ] ; then 
CLHEP_INCLUDE_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/include"
- if [ X/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/lib != X ] ; then 
CLHEP_LIB_DIR="/usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/lib"
- if [ Xy = Xy ] ; then
G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_BUILD_OIX_DRIVER
if [ X$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OIX_DRIVER=$G4VIS_BUILD_OIX_DRIVER"
fi
- export IVROOT=$GSISIM/graphics/OI/inventor-2.1.5-10/usr
export OIVHOME=$IVROOT
export OIHOME=$OIVHOME
export SOQTDIR=$OIVHOME/lib/
- export DAWNDIR=$GSISIM/graphics/dawn_3_88a
export DAVIDDIR=$GSISIM/graphics/david/david_1_36a
export WIREDDIR=$GSISIM/graphics/Wired3
- echo " ### Graphics package setup <update 01.08.2006>      ### "
- echo " Open Inventor: " $IVROOT
- OGLHOME="/usr/X11R6"
- if [ Xy = Xy ] ; then
G4LIB_BUILD_ZLIB=1
export G4LIB_BUILD_ZLIB
if [ X$g4non_display = X ] ; then
echo "On this machine the G4LIB_BUILD_ZLIB=$G4LIB_BUILD_ZLIB"
fi
fi 
- # remove existing OI-parts from LD_LIBRARY_PATH

 
   NEWLIBPATH=
   LP=`echo $LD_LIBRARY_PATH | sed 's/:/ /g'`
     for dir in $LP
      do
       if [ $dir'x' != `echo $dir | awk '/\/OI/'`'x' ] ; then
          NEWLIBPATH=$NEWLIBPATH':'$dir 
       fi
      done  
  LD_LIBRARY_PATH=`echo $NEWLIBPATH | sed 's/://'` 
  export LD_LIBRARY_PATH

compile and install

  • initialize environment
    • as gsisim do:
      • . gcc32login
      • . gsisimlogin g4.8.1
      • cd $G4INSTALL
      • ./Configure -build
1) OS           : Linux

2) Compiler     : g++

Do you expect to run these scripts and binaries on multiple machines? [n]

Where is Geant4 source installed?
[/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1]

Specify the path where Geant4 libraries and source files should be
installed.
[/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1]

Do you want to copy all Geant4 headers
in one directory? [n] y

Please, specify default directory where ALL the Geant4 data is installed:
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data

1) G4LEVELGAMMADATA:            /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/PhotonEvaporation2.0

2) G4RADIOACTIVEDATA:           /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/RadiativeDecay3.0

3) G4LEDATA:                    /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4EMLOW4.0

4) NeutronHPCrossSections:      /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/data/G4NDL3.9

5) G4ELASTICDATA:               /usr/local/pub/debian3.0/gcc323-00/sim/geant4.7.1/data/G4ELASTIC1.1

CLHEP_BASE_DIR:                   /usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3

You can customize paths and library name of you CLHEP installation:

1) CLHEP_INCLUDE_DIR:           /usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/include
2) CLHEP_LIB_DIR:               /usr/local/pub/debian3.0/gcc323-00/sim/CLHEP/1.9.2.3/lib
3) CLHEP_LIB:                   CLHEP

Do you want to build 'shared' (.so) libraries?
[n] y

Do you want to build 'static' (.a) libraries too?
[n] y

Do you want to build 'global' compound libraries? [n] y

Do you want to build 'granular' libraries too?
[n] y

Do you want to use 'granular' libraries instead?
[n] y

Do you want to compile libraries in DEBUG mode (-g)? [n] y

  G4UI_NONE

If this variable is set, no UI sessions nor any UI libraries are built.
This can be useful when running a pure batch job or in a user framework
having its own UI system.
Do you want to set this variable ?
[n]

  G4UI_BUILD_XAW_SESSION
  G4UI_USE_XAW
[n] y

You can set '-' (without quotation) to CANCEL the XAW flag at all:
[/usr/X11R6]

  G4UI_BUILD_XM_SESSION
  G4UI_USE_XM
[n] y

You can set '-' (without quotation) to CANCEL the XM flag at all:
[/usr/X11R6]

 G4VIS_NONE
[n]

  G4VIS_BUILD_OPENGLX_DRIVER
  G4VIS_USE_OPENGLX
[n] y

 G4VIS_BUILD_OPENGLXM_DRIVER
  G4VIS_USE_OPENGLXM
[n] y

  G4VIS_BUILD_DAWN_DRIVER
  G4VIS_USE_DAWN
[n] y

  G4VIS_BUILD_OIX_DRIVER
  G4VIS_USE_OIX
[n] y
You can set '-' (without quotation) to CANCEL the OpenInventor flag at all:  /usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/inventor-2.1.5-10/usr

  G4VIS_BUILD_RAYTRACERX_DRIVER
  G4VIS_USE_RAYTRACERX
[n] y

  G4VIS_BUILD_VRML_DRIVER
  G4VIS_USE_VRML
[n] y

  OGLHOME/include
  OGLHOME/lib
You can set '-' (without quotation) to CANCEL the OpenGL flag at all:
[/usr/X11R6]

  G4LIB_BUILD_G3TOG4
[n] y

  G4LIB_BUILD_ZLIB
[n] y

 G4ANALYSIS_USE
[n]

You can introduce any change to the configuration file
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/.config/bin/Linux-g++/config.sh before the final installation.
To do so, use a shell escape now (e.g. !vi /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/.config/bin/Linux-g++/config.sh).

Press [Enter] to start installation or use a shell escape to edit config.sh:

Making libname.map starter file ...
Making libname.map ...
  Reading library name map file...
  Reading dependency files...
  Checking for circular dependencies...
  Reordering according to dependencies...
  Writing new library map file...

####################################################
# Your Geant4 installation seems to be successful!
# To be sure please have a look into the log file:
# /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/.config/bin/Linux-g++/g4make.log
####################################################

then ...

gsisim@lxg0503:/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1> ./Configure -install
Installing header files in /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/include

TEST

. gcc32login
. gsisimlogin g4.8.1
cp -rp /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/examples/novice/N01/ N01
cp -rp /usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/examples/novice/N02/ N02
gmake clean
gmake

but ...

Linking exampleN01 ...
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib/Linux-g++/libG4OpenInventor.so: u
ndefined reference to `SoMFInt32::SoMFInt32[in-charge]()'
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib/Linux-g++/libG4OpenInventor.so: u
ndefined reference to `SoDebugError::post(char const*, char const*, ...)'
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib/Linux-g++/libG4OpenInventor.so: u
ndefined reference to `SoFieldContainer::readInstance(SoInput*, unsigned short)'
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib/Linux-g++/libG4OpenInventor.so: u
ndefined reference to `SoNode::getChildren() const'
/usr/local/pub/debian3.0/gcc323-00/sim/geant4.8.1/lib/Linux-g++/libG4OpenInventor.so: u
ndefined reference to `SoShape::affectsState() const'

Those libraries seem to be defined in

/usr/local/pub/debian3.0/gcc323-00/sim/graphics/OI/inventor-2.1.5-10/usr/lib/libInventor.so

has OpenInventor been built against the wrong OI ? Temporary solution: remove libG4OpenInventor from $G4LIB, then examples N01 and N02 compile and run without problems.

final touches

  • remove OI from configuration and recompile the whole thing
  • cd source: gmake includes
  • cd $G4INSTALL/config: edit binmake.gmk
CPPFLAGS += $(INCFLAGS)
LDFLAGS += -L$(G4LIBDIR)
LDFLAGS += -L/usr/X11R6/lib -lXp

gcc335-13

CLHEP-1.9.2.3

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

Visualisation Driver Dawn

* Download and Installation Instructions
  • download dawn_3_88a
  • store in /usr/local/pub/debian3.1/gcc335-13/sim/graphics
  • tar -zxvf dawn_3_88a.taz
  • cd dawn_3_88a
  • make clean
  • make guiclean
  • create /usr/local/pub/debian3.1/gcc335-13/sim/graphics/dawn_3_88a/bin
  • configure_xwin
    • C++ compiler name: g++
    • optimisation option: -O2
    • Tcl/Tk window shell name: wish
    • include directory for Xlib: -I/usr/X11R6/include
    • input lib directory for xlib:
    • -L/usr/X11R6/lib
    • installation dir: /usr/local/pub/debian3.1/gcc335-13/sim/graphics/dawn_3_88a/bin
    • system: 0 (default) ==> 4 (RedHat)
    • remote visualitaion ?: y
  • make
  • make install
  • export DAWN_PS_PREVIEWER "gv"
  • testing dawn:
  • cd /usr/local/pub/debian3.1/gcc335-13/sim/graphics/dawn_3_88a/PRIM_DATA
  • ../bin/dawn primitives2.prim ==> ok smile

David

  • David Homepage and download
  • store david_1_36a.taz at /usr/local/pub/debian3.1/gcc335-13/sim/graphics/david
  • 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 smile
  • define INSTALL_DIR in Makefile.GNU_g++ ($PWD/bin)
  • make install

OpenGL

  • provided by Debian in /usr

Open Inventor

  • since most of the times problematic left out this time. Try again with next G4-version

Wired

ok, enough visualisation smile

setup configuration

edit gsisimlogin (as kschwarz)
  • /usr/local/bin/gsisimlogin
    • for compiler gcc335-13 add
if [ "$GSI_COMPILER_CC" = "gcc335-13" ]
  then
  export ROOTSIM=/usr/local/pub/debian3.1/gcc335-13/sim
  if [ "$virtualmc" = "-vmc" ]
     then
     ...
     else
         Option=$1
             case $Option in
             dev ) ...
             new ) ...
             prod ) ...
             old ) ...
             g4.8.1 ) . $ROOTSIM/config/g4.8.1.gsiconf.sh
             ;;
             *) echo ...
             ;;
          esac
  fi
fi

get source code

  • copy from /usr/local/pub/debian3.0 and untar in the corresponding directories.
    • .../gcc323-00/sim/geant4.8.1.tar.gz
    • .../gcc323-00/sim/geant4.8.1/data/PhotonEvaporation.2.0.tar.gz
    • .../gcc323-00/sim/geant4.8.1/data/RadiativeDecay.3.0.tar.gz
    • .../gcc323-00/sim/geant4.8.1/data/G4EMLOW.4.0.tar.gz
    • .../gcc323-00/sim/geant4.8.1/data/G4NDL.3.9.tar.gz
    • .../gcc323-00/sim/geant4.7.1/data/G4ELASTIC.1.1.tar.gz

-- KilianSchwarz - 04 Jul 2006
Topic revision: r12 - 2007-01-25, 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)