Geant4 external dependencies
ROOT
Version >= 5.26. Please don't use 5.28, there is some problem with serialization. You need to compile ROOT with the following flag
--enable-xml
OpenInventor
If you can't get OpenInventor installed on your system using your native package manager (which is the recommended), you could try to compile it from scratch in user area. I have a snapshot of the version of OpenInventor which comes with athena (vp1) and which safely compiles in SLC. Get the tar.gz from afs
/afs/cern.ch/user/i/idarraga/public/inventor.tar.gz
now as usual, untar, get into the directory and go configure with prefixes
$ configure --prefix=xxxxx --exec-prefix=xxxxx
$ make
$ make install
check that the installation is ok
$ ls -lrth xxxxx/lib
you should get the following libs
libFL.so libimage.so libInventor.so libInventorXt.so
later on when compiling Geant4, the Configure script will ask at some point where OpenInventor is installed. You should provide the location used for this installation.
IMPORTANT: If you installed OpenInventor as described in this section, you ought to set this environment variable. Your probably want to put this in your Geant4 setup (g4_installation_path/env.sh)
export OI_EXT_VP1=1
Xerces
Before installing Geant4 you need xerces support (xml)
Get xerces.
$ wget http://apache.cict.fr//xerces/c/3/sources/xerces-c-3.1.1.tar.gz
The building docu is there, but if you feel lucky go this way: Untar and get inside the directory
$ tar xvfz xerces-c-3.1.1.tar.gz
$ cd xerces-c-3.1.1
$ mkdir -p $HOME/geant4deps/xerces
$ ./configure --prefix=$HOME/geant4deps/xerces --exec-prefix=$HOME/geant4deps/xerces
note that --prefix and --exec-prefix falls in your user area. Now make (or gmake depending on your local config).
$ make
$ make install
check your installation
ls -lh $HOME/geant4deps/xerces
--
JohnIdarraga - 24 Feb 2011