Geant4 Installation

From AstroNuWiki
Jump to: navigation, search

Start with

./Configure -build

and answer the questions as follows:


               --- Geant4 Toolkit Build  ---



This installation shell script will examine your system and ask you questions
to determine how the Geant4 Toolkit should be installed.  If you get stuck on
a question, you may use a ! shell escape to start a subshell or execute a
command.  Many of the questions will have default answers in square brackets;
typing carriage return will set the default.
On AFS it is allowed to specify either absolute or relative
paths (i.e. starting with the ~username construct).
[Type carriage return to continue]
The prompt used in this script allows you to use shell variables and backticks
in your answers. You may use $1, $2, etc...  to refer to the words in the
default answer, as if the default line was a set of arguments given to a
script shell. This means you may also use $* to repeat the whole default line.

Everytime there is a substitution, you will have to confirm.  If there is an
error (e.g. an unmatched backtick), the default answer will remain unchanged
and you will be prompted again.

Running 'Configure -d' will bypass nearly all the questions and
use the computed defaults (or answers saved in a configuration
previously generated).

Type 'Configure -h' for a list of options.

You may also start interactively and then answer '& -d' at any prompt to turn
on the non-interactive behaviour for the rest of the execution.

[Type carriage return to continue]

Much effort has been spent to ensure that this shell script will run on any
Unix system. If despite that you can't run Configure for some reason, you'll
have to set the proper environment variables by hand and follow the "manual"
installation as specified in the Geant4 Installation Guide.

[Type carriage return to continue]
Definition of G4SYSTEM variable is Linux-g++.
That stands for:

1) OS           : Linux

2) Compiler     : g++
To modify default settings, select number above (e.g. 2)
[Press [Enter] for default settings]
I can set things up so that your shell scripts and binaries are more portable,
at what may be a noticable cost in performance.  In particular, if you
ask to be portable, the following happens:

    1) Shell scripts will rely on the PATH variable rather than using
       the paths derived above.
    2) ~username interpretations will be done at run time rather than
       by Configure.
Do you expect to run these scripts and binaries on multiple machines? [n]


Where is Geant4 source installed?  [/cern/geant4]
Specify the path where Geant4 libraries and source files should be
installed.
[/cern/geant4]
Do you want to copy all Geant4 headers
in one directory? [n] y


Please, specify default directory where ALL the Geant4 data is installed:
G4LEVELGAMMADATA:              /cern/geant4/data/PhotonEvaporation2.0
G4RADIOACTIVEDATA:             /cern/geant4/data/RadiativeDecay3.0
G4LEDATA:                      /cern/geant4/data/G4EMLOW4.0
NeutronHPCrossSections:        /cern/geant4/data/G4NDL3.9
G4ELASTICDATA:                 /cern/geant4/data/G4ELASTIC1.1
You will be asked about customizing these next.
[/cern/geant4/data]
Please, specify default directory where the Geant4 data is installed:
1) G4LEVELGAMMADATA:            /cern/geant4/data/PhotonEvaporation2.0
2) G4RADIOACTIVEDATA:           /cern/geant4/data/RadiativeDecay3.0
3) G4LEDATA:                    /cern/geant4/data/G4EMLOW4.0
4) NeutronHPCrossSections:      /cern/geant4/data/G4NDL3.9
5) G4ELASTICDATA:               /cern/geant4/data/G4ELASTIC1.1
To modify default settings, select number above (e.g. 2)
[Press [Enter] for default settings]
Could not find CLHEP installed on this system!
Please, specify where CLHEP is installed:
CLHEP_BASE_DIR:                   /cern/CLHEP
You can customize paths and library name of you CLHEP installation:
1) CLHEP_INCLUDE_DIR:           /cern/CLHEP/include
2) CLHEP_LIB_DIR:               /cern/CLHEP/lib
3) CLHEP_LIB:                   CLHEP
To modify default settings, select number above (e.g. 2)
[Press [Enter] for default settings]




By default 'static' (.a) libraries are built.
Do you want to build 'shared' (.so) libraries?
[n] y


You selected to build 'shared' (.so) libraries.
Do you want to build 'static' (.a) libraries too?
[n]



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


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



 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
 Specifies to include and use the XAW interfaces in the
 application to be built.
 The XAW (X11 Athena Widget set) extensions are required to activate
 and build this driver.
[n]
 G4UI_BUILD_XM_SESSION
 G4UI_USE_XM
 Specifies to include and use the XM Motif based user interfaces.
 The XM Motif extensions are required to activate and build this
 driver.
[n]


 G4VIS_NONE
If this variable is set, no visualization drivers will be built or used.
Do you want to set this variable ?
[n]
 G4VIS_BUILD_OPENGLX_DRIVER
 G4VIS_USE_OPENGLX
It is an interface to the de facto standard 3D graphics library,
OpenGL. It is well suited for real-time fast visualization
and prototyping. The X11 version of the OpenGL libraries is
required.
[n] y
 G4VIS_BUILD_OPENGLXM_DRIVER
 G4VIS_USE_OPENGLXM
It is an interface to the de facto standard 3D graphics library,
OpenGL. It is well suited for real-time fast visualization
and prototyping. The X11 version of the OpenGL libraries and
the Motif Xm extension is required.
[n] y
 XM/include
 XM/lib
You have selected to use OPENGLXM driver.
Specify the correct path where Xm is installed in your system.
It was found in /usr. Press [Enter] to set this path or type the correct one.
You can set '-' (without quotation) to CANCEL the XM flag at all:
[/usr]
 G4VIS_BUILD_DAWN_DRIVER
 G4VIS_USE_DAWN
DAWN drivers are interfaces to the Fukui Renderer DAWN. DAWN is
a vectorized 3D PostScript processor suited to prepare technical
high quality outputs for presentation and/or documentation.
[n]
 G4VIS_BUILD_OIX_DRIVER
 G4VIS_USE_OIX
The OpenInventor driver is based on OpenInventor technology
for scientific visualization.
The X11 version of OpenInventor is required.
[n]
 G4VIS_BUILD_RAYTRACERX_DRIVER
 G4VIS_USE_RAYTRACERX
Allows for interactive ray-tracing graphics through X11.
The X11 package is required.
[n]
 G4VIS_BUILD_VRML_DRIVER
 G4VIS_USE_VRML
These driver generate VRML files, which describe 3D scenes to be
visualized with a proper VRML viewer.
[n]
 OGLHOME/include
 OGLHOME/lib
You have selected to use OpenGL driver.
Specify the correct path (OGLHOME) where OpenGL is installed in your system.
It was found in /usr. Press [Enter] to set this path or type the correct one.
You can set '-' (without quotation) to CANCEL the OpenGL flag at all:
[/usr]


 G4LIB_BUILD_G3TOG4
The utility module 'g3tog4' will be built by setting this
variable. NOTE: it requires a valid FORTRAN compiler to be
installed on your system and the 'cernlib' command in the
path, in order to build the ancillary tools!
Do you want to build 'g3tog4' ?
[n] y


 G4LIB_BUILD_ZLIB
Do you wish to activate compression for output files generated
through the HepRep visualization driver ?
[n]


 G4ANALYSIS_USE
Activates the configuration setup for allowing plugins to
analysis tools based on AIDA (Astract Interfaces for Data
Analysis). In order to use AIDA features and compliant analysis
tools, the proper environment for these tools will have to be
set (see documentation for the specific analysis tools).
[n]
End of configuration phase.


Creating configuration setup file...
WARNING: the generated configuration file
can be edited if necessary!
You can introduce any change to the configuration file
/cern/geant4/.config/bin/Linux-g++/config.sh before the final installation.
To do so, use a shell escape now (e.g. !vi /cern/geant4/.config/bin/Linux-g++/config.sh).
Press [Enter] to start installation or use a shell escape to edit config.sh:


Now starting Geant4 libraries build...
On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/cern/geant4
On this machine the G4INCLUDE=/cern/geant4/include
On this machine the G4TMP=/cern/geant4/tmp
On this machine the G4LIB=/cern/geant4/lib
On this machine the G4LEVELGAMMADATA=/cern/geant4/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/cern/geant4/data/RadiativeDecay3.0
On this machine the G4LEDATA=/cern/geant4/data/G4EMLOW4.0
On this machine the NeutronHPCrossSections=/cern/geant4/data/G4NDL3.9
On this machine the G4ELASTICDATA=/cern/geant4/data/G4ELASTIC1.1
On this machine the CLHEP_BASE_DIR=/cern/CLHEP
On this machine the CLHEP_INCLUDE_DIR=/cern/CLHEP/include
On this machine the CLHEP_LIB_DIR=/cern/CLHEP/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=1
On this machine the G4VIS_USE_OPENGLX=1
On this machine the G4VIS_USE_OPENGLXM=1
On this machine the XMFLAGS= -I/include
On this machine the XMLIBS= -L/lib -lXm -lXpm
On this machine the XMFLAGS= -I/include
On this machine the XAWFLAGS=
On this machine the XAWLIBS=
On this machine the G4LIB_BUILD_G3TOG4=1
On this machine the G4LIB_USE_G3TOG4=1
On this machine the G4LIB_BUILD_SHARED=1
On this machine the G4LIB_USE_GRANULAR=1
Starting build...
*************************************************************
 Installation Geant4 version : geant4-08-01
 Copyright (C) 1994-2006 Geant4 Collaboration
*************************************************************