Difference between revisions of "GEANT4 Installation Instructions"

From New IAC Wiki
Jump to navigation Jump to search
Line 17: Line 17:
 
2.)
 
2.)
 
  soniatemo@inca:~/GEANT4$ cd CLHEP/
 
  soniatemo@inca:~/GEANT4$ cd CLHEP/
soniatemo@inca:~/GEANT4/CLHEP$ ls
+
  soniatemo@inca:~/GEANT4/CLHEP$ ls
 
  clhep-2.0.3.1.tgz
 
  clhep-2.0.3.1.tgz
  
Line 23: Line 23:
 
  soniatemo@inca:~/GEANT4/CLHEP$ tar xzf clhep-2.0.3.1.tgz
 
  soniatemo@inca:~/GEANT4/CLHEP$ tar xzf clhep-2.0.3.1.tgz
  
4.)soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ ./configure --prefix=/home/soniatemo/GEANT4/CLHEP --disable-shared
+
4.)
 +
soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ ./configure --prefix=/home/soniatemo/GEANT4/CLHEP --disable-shared
  
 
  config.status: creating test/testThrowFrom.sh
 
  config.status: creating test/testThrowFrom.sh
Line 35: Line 36:
 
  config.status: executing depfiles commands
 
  config.status: executing depfiles commands
  
5.)soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ make && make install
+
5.)
 +
soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ make && make install
  
 
  /usr/bin/install -c 'clheplib' '/home/soniatemo/GEANT4/CLHEP/bin/clheplib'
 
  /usr/bin/install -c 'clheplib' '/home/soniatemo/GEANT4/CLHEP/bin/clheplib'
 
  /usr/bin/install -c 'clhep-config' '/home/soniatemo/GEANT4/CLHEP/bin/clhep-config'
 
  /usr/bin/install -c 'clhep-config' '/home/soniatemo/GEANT4/CLHEP/bin/clhep-config'
test -z "/home/soniatemo/GEANT4/CLHEP/lib" || mkdir -p -- "/home/soniatemo/GEANT4/CLHEP/lib"
+
test -z "/home/soniatemo/GEANT4/CLHEP/lib" || mkdir -p -- "/home/soniatemo/GEANT4/CLHEP/lib"
 
  /usr/bin/install -c -m 644 'libCLHEP-2.0.3.1.a' '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
 
  /usr/bin/install -c -m 644 'libCLHEP-2.0.3.1.a' '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
 
  ranlib '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
 
  ranlib '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
make[2]: Nothing to be done for `install-data-am'.
+
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'
+
make[2]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'
make[1]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'
+
make[1]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'
soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$
+
 
 +
 
 +
I have lib and include direc-ies.
 +
soniatemo@inca:~/GEANT4/CLHEP$ ls
 +
2.0.3.1  bin  clhep-2.0.3.1.tgz  include  lib
 +
  
 +
6.)
 +
soniatemo@inca:~/GEANT4$ ls
  
I have lib and include direc-ies.
+
CLHEP  geant4 geantfiles
soniatemo@inca:~/GEANT4/CLHEP$ ls
 
2.0.3.1  bin  clhep-2.0.3.1.tgz include lib
 
soniatemo@inca:~/GEANT4/CLHEP$
 
  
  
6.) soniatemo@inca:~/GEANT4$ ls
+
7.)
CLHEP  geant4  geantfiles
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf geant4.9.1.p02.tar.gz -C /home/soniatemo/GEANT4/geant4
soniatemo@inca:~/GEANT4$  
+
soniatemo@inca:~/GEANT4/geantfiles$ cd ../
 +
soniatemo@inca:~/GEANT4$ ls
 +
CLHEP  geant4  geantfiles
 +
soniatemo@inca:~/GEANT4$ cd geant4/
 +
soniatemo@inca:~/GEANT4/geant4$ ls
 +
geant4.9.1.p02
 +
  
 +
8.)
 +
soniatemo@inca:~/GEANT4/geantfiles$ ls
 +
 +
G4EMLOW.4.2.tar.gz  G4NDL.3.10.tar.gz              geant4.9.1.p02.tar.gz
 +
G4NDL.0.2.tar.gz    G4RadioactiveDecay.3.1.tar.gz  PhotonEvaporation.2.0.tar.gz
  
7.)soniatemo@inca:~/GEANT4/geantfiles$ tar xzf geant4.9.1.p02.tar.gz -C /home/soniatemo/GEANT4/geant4
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf PhotonEvaporation.2.0.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4/geantfiles$ cd ../
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4RadioactiveDecay.3.1.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4$ ls
+
  soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4EMLOW.4.2.tar.gz -C /home/soniatemo/GEANT4/geant4/data
CLHEP geant4  geantfiles
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4NDL.3.10.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4$ cd geant4/
+
soniatemo@inca:~/GEANT4/geant4$ ls
 
geant4.9.1.p02
 
soniatemo@inca:~/GEANT4/geant4$
 
  
8.)soniatemo@inca:~/GEANT4/geantfiles$ ls
+
  soniatemo@inca:~/GEANT4/geantfiles$ cd ../
G4EMLOW.4.2.tar.gz  G4NDL.3.10.tar.gz              geant4.9.1.p02.tar.gz
+
  soniatemo@inca:~/GEANT4$ cd geant4/data/
G4NDL.0.2.tar.gz    G4RadioactiveDecay.3.1.tar.gz PhotonEvaporation.2.0.tar.gz
+
soniatemo@inca:~/GEANT4/geant4/data$ ls
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf PhotonEvaporation.2.0.tar.gz -C /home/soniatemo/GEANT4/geant4/data
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4RadioactiveDecay.3.1.tar.gz -C /home/soniatemo/GEANT4/geant4/data
+
G4EMLOW4.2  G4NDL3.10  PhotonEvaporation2.0  RadioactiveDecay3.1
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4EMLOW.4.2.tar.gz -C /home/soniatemo/GEANT4/geant4/data
+
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4NDL.3.10.tar.gz -C /home/soniatemo/GEANT4/geant4/data
 
soniatemo@inca:~/GEANT4/geantfiles$ cd ../
 
soniatemo@inca:~/GEANT4$ cd data
 
-bash: cd: data: No such file or directory
 
soniatemo@inca:~/GEANT4$ ls
 
CLHEP  geant4 geantfiles
 
soniatemo@inca:~/GEANT4$ cd geant4/data/
 
soniatemo@inca:~/GEANT4/geant4/data$ ls
 
G4EMLOW4.2  G4NDL3.10  PhotonEvaporation2.0  RadioactiveDecay3.1
 
soniatemo@inca:~/GEANT4/geant4/data$
 
  
 +
9.)
 +
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure -build
  
9.)soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure -build
 
  
10.)[Type carriage return to continue] (ENTER)
+
10.)
 +
[Type carriage return to continue] (ENTER)
  
 
11.)
 
11.)
Definition of G4SYSTEM variable is Linux-g++.
+
Definition of G4SYSTEM variable is Linux-g++.
That stands for:
+
That stands for:
 +
 
 +
1) OS          : Linux
  
1) OS          : Linux
+
2) Compiler    : g++
  
2) Compiler    : g++
+
To modify default settings, select number above (e.g. 2)  
 +
[Press [Enter] for default settings] (enter)
  
To modify default settings, select number above (e.g. 2)
 
[Press [Enter] for default settings] (enter)
 
  
 
12.)
 
12.)
 
+
I can set things up so that your shell scripts and binaries are more portable,
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
at what may be a noticable cost in performance.  In particular, if you
+
ask to be portable, the following happens:
ask to be portable, the following happens:
 
  
 
     1) Shell scripts will rely on the PATH variable rather than using
 
     1) Shell scripts will rely on the PATH variable rather than using
Line 112: Line 118:
 
         by Configure.
 
         by Configure.
  
Do you expect to run these scripts and binaries on multiple machines? [n] y
+
Do you expect to run these scripts and binaries on multiple machines? [n] y
  
 
13.)
 
13.)
 +
Where is Geant4 source installed?
 +
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02]
  
Where is Geant4 source installed?
+
Specify the path where Geant4 libraries and source files should be
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02]
+
installed.  
 
+
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02]  
Specify the path where Geant4 libraries and source files should be
 
installed.  
 
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02]  
 
 
 
Do you want to copy all Geant4 headers
 
in one directory? [n] y
 
  
 +
Do you want to copy all Geant4 headers
 +
in one directory? [n] y
  
 
14.)
 
14.)
 
+
Please, specify default directory where ALL the Geant4 data is installed:
 
 
 
 
Please, specify default directory where ALL the Geant4 data is installed:
 
  
 
  G4LEVELGAMMADATA:              /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Phot
 
  G4LEVELGAMMADATA:              /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Phot
onEvaporation2.0
+
onEvaporation2.0
 
 
 
  G4RADIOACTIVEDATA:            /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Radi
 
  G4RADIOACTIVEDATA:            /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Radi
oactiveDecay3.2
+
oactiveDecay3.2
 
 
 
  G4LEDATA:                      /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4EM
 
  G4LEDATA:                      /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4EM
LOW5.1
+
LOW5.1
 
 
 
  G4NEUTRONHPDATA:              /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4ND
 
  G4NEUTRONHPDATA:              /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4ND
L3.12
+
L3.12
 
 
 
  G4ABLADATA:                    /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4AB
 
  G4ABLADATA:                    /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4AB
LA3.0
+
LA3.0
 
+
You will be asked about customizing these next.  
You will be asked about customizing these next.  
+
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data             
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data             
 
 
 
  
  
 
15.)
 
15.)
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data                   
+
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data                   
 
+
Please, specify default directory where the Geant4 data is installed:
Please, specify default directory where the Geant4 data is installed:
+
1) G4LEVELGAMMADATA:            /home/soniatemo/GEANT4/geant4/data/PhotonEvaporation2.0
 
+
2) G4RADIOACTIVEDATA:          /home/soniatemo/GEANT4/geant4/data/RadioactiveDecay3.2
1) G4LEVELGAMMADATA:            /home/soniatemo/GEANT4/geant4/data/PhotonEvaporation2.0
+
3) G4LEDATA:                    /home/soniatemo/GEANT4/geant4/data/G4EMLOW5.1
 
+
4) G4NEUTRONHPDATA:            /home/soniatemo/GEANT4/geant4/data/G4NDL3.12
2) G4RADIOACTIVEDATA:          /home/soniatemo/GEANT4/geant4/data/RadioactiveDecay3.2
+
5) G4ABLADATA:                  /home/soniatemo/GEANT4/geant4/data/G4ABLA3.0
 
+
To modify default settings, select number above (e.g. 2)  
3) G4LEDATA:                    /home/soniatemo/GEANT4/geant4/data/G4EMLOW5.1
+
[Press [Enter] for default settings]  
 
 
4) G4NEUTRONHPDATA:            /home/soniatemo/GEANT4/geant4/data/G4NDL3.12
 
 
 
5) G4ABLADATA:                  /home/soniatemo/GEANT4/geant4/data/G4ABLA3.0
 
 
 
To modify default settings, select number above (e.g. 2)  
 
[Press [Enter] for default settings]  
 
  
 
16.)
 
16.)
 
+
Could not find CLHEP installed on this system!
 
+
Please, specify where CLHEP is installed:
Could not find CLHEP installed on this system!
+
CLHEP_BASE_DIR:                  /home/soniatemo/GEANT4/CLHEP
Please, specify where CLHEP is installed:
 
 
 
CLHEP_BASE_DIR:                  /home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP
 
 
 
Could not find CLHEP installed in /home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP!
 
Please, specify where CLHEP is installed:
 
 
 
CLHEP_BASE_DIR:                  /home/soniatemo/GEANT4/CLHEP
 
 
 
 
 
  
  
 
17.)
 
17.)
 
+
You can customize paths and library name of you CLHEP installation:
 
+
1) CLHEP_INCLUDE_DIR:          /home/soniatemo/GEANT4/CLHEP/include
You can customize paths and library name of you CLHEP installation:
+
2) CLHEP_LIB_DIR:              /home/soniatemo/GEANT4/CLHEP/lib
 
+
3) CLHEP_LIB:                  CLHEP
1) CLHEP_INCLUDE_DIR:          /home/soniatemo/GEANT4/CLHEP/include
+
To modify default settings, select number above (e.g. 2)
2) CLHEP_LIB_DIR:              /home/soniatemo/GEANT4/CLHEP/lib
+
[Press [Enter] for default settings] (enter)
3) CLHEP_LIB:                  CLHEP
 
To modify default settings, select number above (e.g. 2)
 
[Press [Enter] for default settings] (enter)
 
  
 
18.)
 
18.)
 +
By default 'static' (.a) libraries are built.
 +
Do you want to build 'shared' (.so) libraries?
 +
[n]
 +
Do you want to build 'global' compound libraries? [n] y
  
By default 'static' (.a) libraries are built.
 
  
Do you want to build 'shared' (.so) libraries?
+
  Granular libraries are used by defaults, you asked to build global
[n]
+
compound libraries. Do you want to build 'granular' libraries too?
   
+
[n]  
 
 
 
 
 
 
Do you want to build 'global' compound libraries? [n] y
 
 
 
 
 
Granular libraries are used by defaults, you asked to build global
 
compound libraries. Do you want to build 'granular' libraries too?
 
[n]  
 
 
   
 
   
  
  
Do you want to compile libraries in DEBUG mode (-g)? [n]  
+
Do you want to compile libraries in DEBUG mode (-g)? [n]  
  
  
  
 
19.)
 
19.)
 +
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_NONE
+
G4UI_BUILD_XM_SESSION
 
+
G4UI_USE_XM
If this variable is set, no UI sessions nor any UI libraries are built.
+
Specifies to include and use the XM Motif based user interfaces.
This can be useful when running a pure batch job or in a user framework
+
The XM Motif extensions are required to activate and build this
having its own UI system.
+
driver.
Do you want to set this variable ?
+
[n]  
[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.
+
G4UI_BUILD_QT_SESSION
  The XM Motif extensions are required to activate and build this
+
G4UI_USE_QT
  driver.
+
Setting these variables will enable the building of the G4 Qt based  
[n]
+
user interface module and the use of this module in your applications
 
+
respectively.
  G4UI_BUILD_QT_SESSION
+
The Qt4 headers, libraries and binaries are required to enable the
  G4UI_USE_QT
+
building of this module.
 
+
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
Setting these variables will enable the building of the G4 Qt based  
+
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!        ###
user interface module and the use of this module in your applications
+
Do you want to enable build and use of this module?
respectively.
+
[n]  
The Qt4 headers, libraries and binaries are required to enable the
 
building of this module.
 
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
 
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!        ###
 
Do you want to enable build and use of this module?
 
[n]  
 
 
   
 
   
  
 
+
G4VIS_NONE
  G4VIS_NONE
+
If this variable is set, no visualization drivers will be built or used.
 
+
Do you want to set this variable ?
If this variable is set, no visualization drivers will be built or used.
+
[n]  
Do you want to set this variable ?
 
[n]  
 
 
 
  
  
20.)  G4VIS_BUILD_OPENGLX_DRIVER
+
20.)  
  G4VIS_USE_OPENGLX
+
  G4VIS_BUILD_OPENGLX_DRIVER
 
+
G4VIS_USE_OPENGLX
It is an interface to the de facto standard 3D graphics library,
+
It is an interface to the de facto standard 3D graphics library,
OpenGL. It is well suited for real-time fast visualization
+
OpenGL. It is well suited for real-time fast visualization
and prototyping. The X11 version of the OpenGL libraries is
+
and prototyping. The X11 version of the OpenGL libraries is
required.
+
required.
[n] y
+
[n] y
  
 
21.)
 
21.)
  G4VIS_BUILD_OPENGLXM_DRIVER
+
G4VIS_BUILD_OPENGLXM_DRIVER
  G4VIS_USE_OPENGLXM
+
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]
  
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]
 
  
  G4VIS_BUILD_DAWN_DRIVER
+
G4VIS_BUILD_DAWN_DRIVER
  G4VIS_USE_DAWN
+
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] y
  
DAWN drivers are interfaces to the Fukui Renderer DAWN. DAWN is
+
22.)
a vectorized 3D PostScript processor suited to prepare technical
+
G4VIS_BUILD_OIX_DRIVER
high quality outputs for presentation and/or documentation.
+
G4VIS_USE_OIX
[n] y
 
  
22.) G4VIS_BUILD_OIX_DRIVER
+
  The OpenInventor driver is based on OpenInventor technology  
  G4VIS_USE_OIX
+
for scientific visualization.
 
+
The X11 version of OpenInventor is required.
The OpenInventor driver is based on OpenInventor technology  
+
[n]  
for scientific visualization.
 
The X11 version of OpenInventor is required.
 
[n]  
 
  
 
23.)
 
23.)
  G4VIS_BUILD_RAYTRACERX_DRIVER
+
G4VIS_BUILD_RAYTRACERX_DRIVER
  G4VIS_USE_RAYTRACERX
+
G4VIS_USE_RAYTRACERX
 +
Allows for interactive ray-tracing graphics through X11.
 +
The X11 package is required.
 +
[n]
  
Allows for interactive ray-tracing graphics through X11.
+
G4VIS_BUILD_VRML_DRIVER
The X11 package is required.
+
G4VIS_USE_VRML
[n]
+
These driver generate VRML files, which describe 3D scenes to be  
 
+
visualized with a proper VRML viewer.
  G4VIS_BUILD_VRML_DRIVER
+
[n] y
  G4VIS_USE_VRML
 
 
 
These driver generate VRML files, which describe 3D scenes to be  
 
visualized with a proper VRML viewer.
 
[n] y
 
  
 
24.)
 
24.)
  OGLHOME/include
+
OGLHOME/include
  OGLHOME/lib
+
OGLHOME/lib
 
+
You have selected to use OpenGL driver.
You have selected to use OpenGL driver.
+
Specify the correct path (OGLHOME) where OpenGL is installed in your system.
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.
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]  
You can set '-' (without quotation) to CANCEL the OpenGL flag at all:  
 
[/usr]  
 
  
  
 
25.)
 
25.)
 
+
G4VIS_BUILD_OPENGLQT_DRIVER
    G4VIS_BUILD_OPENGLQT_DRIVER
+
G4VIS_USE_OPENGLQT
    G4VIS_USE_OPENGLQT
+
Setting these variables will enable the building of the G4 OpenGL Qt based
 
+
visualisation driver and the use of this driver in your applications
Setting these variables will enable the building of the G4 OpenGL Qt based
+
respectively.
visualisation driver and the use of this driver in your applications
+
The Qt4 headers, libraries and binaries are required to enable the
respectively.
+
building of this module.
The Qt4 headers, libraries and binaries are required to enable the
+
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
building of this module.
+
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!        ###
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
+
Do you want to enable build and use of this module?
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!        ###
+
[n]  
Do you want to enable build and use of this module?
 
[n]  
 
  
 
26.)
 
26.)
 
+
G4LIB_BUILD_G3TOG4   
  G4LIB_BUILD_G3TOG4   
+
The utility module 'g3tog4' will be built by setting this
 
+
variable. NOTE: it requires a valid FORTRAN compiler to be
The utility module 'g3tog4' will be built by setting this
+
installed on your system and the 'cernlib' command in the
variable. NOTE: it requires a valid FORTRAN compiler to be
+
path, in order to build the ancillary tools!
installed on your system and the 'cernlib' command in the
+
Do you want to build 'g3tog4' ?  
path, in order to build the ancillary tools!
+
[n]
Do you want to build 'g3tog4' ?
 
 
   
 
   
[n]  
+
G4LIB_BUILD_ZLIB 
 +
Do you want to activate compression for output files
 +
generated by the HepRep visualization driver?
 +
[n]  
 
   
 
   
 
+
G4ANALYSIS_USE
 
+
Activates the configuration setup for allowing plugins to
  G4LIB_BUILD_ZLIB  
+
  analysis tools based on AIDA (Astract Interfaces for Data
 
+
Analysis). In order to use AIDA features and compliant analysis
Do you want to activate compression for output files
+
tools, the proper environment for these tools will have to be
generated by the HepRep visualization driver?
+
set (see documentation for the specific analysis tools).
 +
[n]
 
   
 
   
[n]
+
End of configuration phase.
 
   
 
   
 
 
  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.
+
  Stripping down executable paths...
   
+
  Creating configuration setup file...
+
WARNING: the generated configuration file
Stripping down executable paths...
+
can be edited if necessary!
   
+
You can introduce any change to the configuration file
Creating configuration setup file...
+
/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/.config/bin/Linux-g++/config.sh before th
 
+
inal installation.  
WARNING: the generated configuration file
+
To do so, use a shell escape now (e.g. !vi /home/soniatemo/GEANT4/geant4/geant4.9.1.p0
can be edited if necessary!
+
config/bin/Linux-g++/config.sh).
You can introduce any change to the configuration file
+
Press [Enter] to start installation or use a shell escape to edit config.sh:  
/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/.config/bin/Linux-g++/config.sh before th
+
(enter)
inal installation.  
 
To do so, use a shell escape now (e.g. !vi /home/soniatemo/GEANT4/geant4/geant4.9.1.p0
 
config/bin/Linux-g++/config.sh).
 
 
 
Press [Enter] to start installation or use a shell escape to edit config.sh:  
 
(enter)
 
  
 
27.)
 
27.)
Creating/replacing object files in /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a ...
+
Creating/replacing object files in /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a ...
ar: creating /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a
+
ar: creating /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a
Building library management utility liblist ...
+
Building library management utility liblist ...
Libraries installation completed !
+
Libraries installation completed !
  
 
  ####################################################
 
  ####################################################
Line 412: Line 352:
 
  ####################################################
 
  ####################################################
  
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$  
+
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$  
 +
 
 +
28.)
 +
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ls
 +
 
 +
bin    Configure    examples  lib      ReleaseNotes  tmp
 +
config  environments  include  LICENSE  source
  
28.)soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ls
 
bin    Configure    examples  lib      ReleaseNotes  tmp
 
config  environments  include  LICENSE  source
 
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure
 
  
 
29.)soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure
 
29.)soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure

Revision as of 11:24, 16 September 2008

1.)

soniatemo@inca:~/GEANT4/CLHEP$ ls
clhep-2.0.3.1.tgz
soniatemo@inca:~/GEANT4/CLHEP$ cd ../
soniatemo@inca:~/GEANT4$ ls
CLHEP  geantfiles

soniatemo@inca:~/GEANT4$ cd geantfiles/
soniatemo@inca:~/GEANT4/geantfiles$ ls
G4EMLOW.4.2.tar.gz  G4NDL.3.10.tar.gz              geant4.9.1.p02.tar.gz
G4NDL.0.2.tar.gz    G4RadioactiveDecay.3.1.tar.gz  PhotonEvaporation.2.0.tar.gz
 


2.)

soniatemo@inca:~/GEANT4$ cd CLHEP/
 soniatemo@inca:~/GEANT4/CLHEP$ ls
clhep-2.0.3.1.tgz

3.)

soniatemo@inca:~/GEANT4/CLHEP$ tar xzf clhep-2.0.3.1.tgz

4.)

soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ ./configure --prefix=/home/soniatemo/GEANT4/CLHEP --disable-shared
config.status: creating test/testThrowFrom.sh
config.status: creating test/exctest1.sh
config.status: creating test/exctest2.sh
config.status: creating test/exctest3.sh
config.status: creating test/exctest4.sh
config.status: creating test/exctestNothrow.sh
config.status: creating test/excDblThrow.sh
config.status: creating Exceptions/defs.h
config.status: executing depfiles commands

5.)

soniatemo@inca:~/GEANT4/CLHEP/2.0.3.1/CLHEP$ make && make install
/usr/bin/install -c 'clheplib' '/home/soniatemo/GEANT4/CLHEP/bin/clheplib'
/usr/bin/install -c 'clhep-config' '/home/soniatemo/GEANT4/CLHEP/bin/clhep-config'
test -z "/home/soniatemo/GEANT4/CLHEP/lib" || mkdir -p -- "/home/soniatemo/GEANT4/CLHEP/lib"
/usr/bin/install -c -m 644 'libCLHEP-2.0.3.1.a' '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
ranlib '/home/soniatemo/GEANT4/CLHEP/lib/libCLHEP-2.0.3.1.a'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'
make[1]: Leaving directory `/home/soniatemo/GEANT4/CLHEP/2.0.3.1/CLHEP'


I have lib and include direc-ies.
soniatemo@inca:~/GEANT4/CLHEP$ ls
2.0.3.1  bin  clhep-2.0.3.1.tgz  include  lib

6.)

soniatemo@inca:~/GEANT4$ ls
CLHEP  geant4  geantfiles


7.)

soniatemo@inca:~/GEANT4/geantfiles$ tar xzf geant4.9.1.p02.tar.gz -C /home/soniatemo/GEANT4/geant4
soniatemo@inca:~/GEANT4/geantfiles$ cd ../
soniatemo@inca:~/GEANT4$ ls
CLHEP  geant4  geantfiles
soniatemo@inca:~/GEANT4$ cd geant4/
soniatemo@inca:~/GEANT4/geant4$ ls
geant4.9.1.p02

8.)

soniatemo@inca:~/GEANT4/geantfiles$ ls

G4EMLOW.4.2.tar.gz  G4NDL.3.10.tar.gz              geant4.9.1.p02.tar.gz
G4NDL.0.2.tar.gz    G4RadioactiveDecay.3.1.tar.gz  PhotonEvaporation.2.0.tar.gz
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf PhotonEvaporation.2.0.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4RadioactiveDecay.3.1.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4EMLOW.4.2.tar.gz -C /home/soniatemo/GEANT4/geant4/data
soniatemo@inca:~/GEANT4/geantfiles$ tar xzf G4NDL.3.10.tar.gz -C /home/soniatemo/GEANT4/geant4/data

soniatemo@inca:~/GEANT4/geantfiles$ cd ../
soniatemo@inca:~/GEANT4$ cd geant4/data/
soniatemo@inca:~/GEANT4/geant4/data$ ls

G4EMLOW4.2  G4NDL3.10  PhotonEvaporation2.0  RadioactiveDecay3.1

9.)

soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure -build


10.)

[Type carriage return to continue] (ENTER)

11.)

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] (enter)


12.)

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] y

13.)

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

14.)

Please, specify default directory where ALL the Geant4 data is installed:
G4LEVELGAMMADATA:              /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Phot
onEvaporation2.0
G4RADIOACTIVEDATA:             /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/Radi
oactiveDecay3.2
G4LEDATA:                      /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4EM
LOW5.1
G4NEUTRONHPDATA:               /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4ND
L3.12
G4ABLADATA:                    /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data/G4AB
LA3.0
You will be asked about customizing these next. 
[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data            


15.)

[/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/data] /home/soniatemo/GEANT4/geant4/data                   
Please, specify default directory where the Geant4 data is installed:
1) G4LEVELGAMMADATA:            /home/soniatemo/GEANT4/geant4/data/PhotonEvaporation2.0
2) G4RADIOACTIVEDATA:           /home/soniatemo/GEANT4/geant4/data/RadioactiveDecay3.2
3) G4LEDATA:                    /home/soniatemo/GEANT4/geant4/data/G4EMLOW5.1
4) G4NEUTRONHPDATA:             /home/soniatemo/GEANT4/geant4/data/G4NDL3.12
5) G4ABLADATA:                  /home/soniatemo/GEANT4/geant4/data/G4ABLA3.0
To modify default settings, select number above (e.g. 2) 
[Press [Enter] for default settings] 

16.)

Could not find CLHEP installed on this system!
Please, specify where CLHEP is installed:
CLHEP_BASE_DIR:                   /home/soniatemo/GEANT4/CLHEP


17.)

You can customize paths and library name of you CLHEP installation:
1) CLHEP_INCLUDE_DIR:           /home/soniatemo/GEANT4/CLHEP/include
2) CLHEP_LIB_DIR:               /home/soniatemo/GEANT4/CLHEP/lib
3) CLHEP_LIB:                   CLHEP
To modify default settings, select number above (e.g. 2)
[Press [Enter] for default settings] (enter)

18.)

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


Granular libraries are used by defaults, you asked to build global
compound libraries. Do you want to build 'granular' libraries too?
[n] 


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


19.)

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] 
G4UI_BUILD_QT_SESSION
G4UI_USE_QT
Setting these variables will enable the building of the G4 Qt based 
user interface module and the use of this module in your applications
respectively.
The Qt4 headers, libraries and binaries are required to enable the
building of this module.
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!         ###
Do you want to enable build and use of this module?
[n] 

G4VIS_NONE
If this variable is set, no visualization drivers will be built or used.
Do you want to set this variable ?
[n] 


20.)

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

21.)

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] 


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] y

22.)

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] 

23.)

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] y

24.)

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] 


25.)

G4VIS_BUILD_OPENGLQT_DRIVER
G4VIS_USE_OPENGLQT
Setting these variables will enable the building of the G4 OpenGL Qt based
visualisation driver and the use of this driver in your applications
respectively.
The Qt4 headers, libraries and binaries are required to enable the
building of this module.
### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!         ###
Do you want to enable build and use of this module?
[n] 

26.)

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] 

G4LIB_BUILD_ZLIB  
Do you want to activate compression for output files
generated by 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.


Stripping down executable paths...
Creating configuration setup file...
WARNING: the generated configuration file
can be edited if necessary!
You can introduce any change to the configuration file
/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/.config/bin/Linux-g++/config.sh before th
inal installation. 
To do so, use a shell escape now (e.g. !vi /home/soniatemo/GEANT4/geant4/geant4.9.1.p0
config/bin/Linux-g++/config.sh).
Press [Enter] to start installation or use a shell escape to edit config.sh: 
(enter)

27.)

Creating/replacing object files in /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a ...
ar: creating /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib/Linux-g++/libG4OpenGL.a
Building library management utility liblist ...
Libraries installation completed !
####################################################
# Your Geant4 installation seems to be successful!  
# To be sure please have a look into the log file:  
# /home/soniatemo/GEANT4/geant4/geant4.9.1.p02/.config/bin/Linux-g++/g4make.log                                
####################################################
soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ 

28.)

soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ls
bin     Configure     examples  lib      ReleaseNotes  tmp
config  environments  include   LICENSE  source


29.)soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ./Configure


               --- Geant4 Toolkit Installation  ---
                 (setting environments for USER )




The Geant4 toolkit installation was found. The files env.[c]sh will be copied to your current directory. For setting Geant4 environments you should make:

source env.csh

or

. env.sh

It will also check G4WORKDIR setting and set it to your HOME if needed. You can use these files also for further modifications (adding your own environments).


soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$

30.) soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ls bin Configure environments examples lib ReleaseNotes tmp config env.csh env.sh include LICENSE source soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$

31.) soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ export LD_LIBRARY_PATH=~/CLHEP/lib/:$LD_LIBRARY_PATH soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$

32.)

soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ ls bin Configure environments examples lib ReleaseNotes tmp config env.csh env.sh include LICENSE source soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ source env.sh On this machine the G4SYSTEM=Linux-g++ On this machine the G4INSTALL=/home/soniatemo/GEANT4/geant4/geant4.9.1.p02 On this machine the G4INCLUDE=/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/i clude/ On this machine the G4LIB=/home/soniatemo/GEANT4/geant4/geant4.9.1.p02/lib On this machine the G4LEVELGAMMADATA=/home/soniatemo/GEANT4/geant4/data/Phot nEvaporation2.0 On this machine the G4RADIOACTIVEDATA=/home/soniatemo/GEANT4/geant4/data/Rad oactiveDecay3.2 On this machine the G4LEDATA=/home/soniatemo/GEANT4/geant4/data/G4EMLOW5.1 On this machine the G4NEUTRONHPDATA=/home/soniatemo/GEANT4/geant4/data/G4NDL .12 On this machine the G4ABLADATA=/home/soniatemo/GEANT4/geant4/data/G4ABLA3.0 On this machine the CLHEP_BASE_DIR=/home/soniatemo/GEANT4/CLHEP On this machine the CLHEP_INCLUDE_DIR=/home/soniatemo/GEANT4/CLHEP/include On this machine the CLHEP_LIB_DIR=/home/soniatemo/GEANT4/CLHEP/lib On this machine the CLHEP_LIB=CLHEP On this machine the G4VIS_BUILD_DAWN_DRIVER=1 On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1 On this machine the G4VIS_BUILD_VRML_DRIVER=1 On this machine the G4VIS_USE_DAWN=1 On this machine the G4VIS_USE_OPENGLX=1 On this machine the G4VIS_USE_VRML=1 On this machine the XMFLAGS= On this machine the XMLIBS= On this machine the XMFLAGS= On this machine the XAWFLAGS= On this machine the XAWLIBS= On this machine the G4LIB_BUILD_STATIC=1 On this machine the G4UI_USE_TCSH=1 soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$


33.)bin Configure environments examples lib ReleaseNotes tmp config env.csh env.sh include LICENSE source soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02$ cd examples/novice/N02 soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02/examples/novice/N02$ make Making dependency for file exampleN02.cc ... Making dependency for file src/ExN02TrackerSD.cc ... Making dependency for file src/ExN02TrackerHit.cc ... Making dependency for file src/ExN02SteppingVerbose.cc ... Making dependency for file src/ExN02SteppingAction.cc ... Making dependency for file src/ExN02RunAction.cc ...


ending

Compiling ExN02TrackerSD.cc ... Creating/replacing object files in /home/soniatemo/g4work/tmp/Linux-g++/exampleN02/libexampleN02.a ... ar: creating /home/soniatemo/g4work/tmp/Linux-g++/exampleN02/libexampleN02.a Compiling exampleN02.cc ... Using global libraries ... Linking exampleN02 ... ... Done! soniatemo@inca:~/GEANT4/geant4/geant4.9.1.p02/examples/novice/N02$

34.)setting env variables




References 1.) http://geant4.slac.stanford.edu/tutorial/installation/Geant4.9.0/Linux/Geant4_9_0_Linux_Installation.htm