[Gate-users] GATE and GEANT Install

TienGarry gjtian at hotmail.com
Thu Dec 18 02:50:52 CET 2008


Hi, ALL

I installed geant, root, clhep, and lmf3.0 successfully. After the geant4 installation, I can find the env.sh script file in two paths in my
system.
/home/gary/GATE4.0/geant4.9.1.p03/.config/bin/Linux-g++
/home/gary/GATE4.0/geant4.9.1.p03/install/src/geant4/.config/bin/Linux-g++

when I type 
gary at polyu-gary:~/GATE4.0/geant4.9.1.p03$ source /home/gary/GATE4.0/geant4.9.1.p03/.config/bin/Linux-g++
or 
gary at polyu-gary:~/GATE4.0/geant4.9.1.p03$ source /home/gary/GATE4.0/geant4.9.1.p03/install/src/geant4/.config/bin/Linux-g++/env.sh

I can get the following information:

On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/home/gary/GATE4.0/geant4.9.1.p03/install/src/geant4
On this machine the G4LIB=/home/gary/GATE4.0/geant4.9.1.p03/install/lib/geant4
On this machine the G4LEVELGAMMADATA=/home/gary/GATE4.0/geant4.9.1.p03/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/home/gary/GATE4.0/geant4.9.1.p03/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/home/gary/GATE4.0/geant4.9.1.p03/data/G4EMLOW5.1
On this machine the G4NEUTRONHPDATA=/home/gary/GATE4.0/geant4.9.1.p03/data/G4NDL3.12
On this machine the G4ABLADATA=/home/gary/GATE4.0/geant4.9.1.p03/data/G4ABLA3.0
On this machine the CLHEP_BASE_DIR=/home/gary/GATE4.0/CLHEP/install
On this machine the CLHEP_INCLUDE_DIR=/home/gary/GATE4.0/CLHEP/install/include
On this machine the CLHEP_LIB_DIR=/home/gary/GATE4.0/CLHEP/install/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1
On this machine the G4VIS_USE_RAYTRACERX=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_SHARED=1
On this machine the G4LIB_USE_GRANULAR=1
On this machine the G4UI_USE_TCSH=1

LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. 

NOTE : verify that the correct path for the CLHEP library
- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH
variable in your environment, and no other outdated installations
of CLHEP are by chance referenced through $LD_LIBRARY_PATH and
present in your system !

But for my gate4 installation, I follow the guide, 
gary at polyu-gary:~/GATE4.0/gate_v4.0.0$ exprot G4VERSION=9.1
then copy geant env.sh file into path  G4INSTALL=/home/gary/GATE4.0/geant4.9.1.p03/install/src/geant4,
then type
gary at polyu-gary:~/GATE4.0/gate_v4.0.0$ source env_gate.sh
I can get:

G4WORKDIR set to .
G4TMP set to ./tmp
G4BIN set to ./bin
Data analysis and output features enabled
Ascii data output enabled
Transport and generation of optical photons is enabled
Use of ROOT disabled
ROOT real-time plotter disabled
LMF data output disabled
ECAT7 data output disabled
GATEHOME is set to /home/gary/GATE4.0/gate_v4.0.0
Checking your path variable...
 ==> OK: /home/gary/GATE4.0/gate_v4.0.0/bin/Linux-g++ is already in your path variable
G4VERSION9 is set: GATE is compatible with the geant4 version 9.1

Done

gary at polyu-gary:~/GATE4.0/gate_v4.0.0$ make 
I get the following errors.

Entering source/geometry ...
Making dependency for file src/GateSurface.cc ...
/bin/sh: xml2-config: not found
In file included from src/GateSurface.cc:18:
../management/include/GateXMLDocument.hh:19:30: error: libxml/xmlmemory.h: No such file or directory
../management/include/GateXMLDocument.hh:20:27: error: libxml/parser.h: No such file or directory
Compiling GateSurface.cc ...
/bin/sh: xml2-config: not found
In file included from src/GateSurface.cc:18:
../management/include/GateXMLDocument.hh:19:30: error: libxml/xmlmemory.h: No such file or directory
../management/include/GateXMLDocument.hh:20:27: error: libxml/parser.h: No such file or directory
In file included from src/GateSurface.cc:18:
../management/include/GateXMLDocument.hh:28: error: ‘xmlNodePtr’ does not name a type
../management/include/GateXMLDocument.hh:62: error: ‘xmlDocPtr’ does not name a type
../management/include/GateXMLDocument.hh:63: error: ‘xmlNodePtr’ does not name a type
/home/gary/GATE4.0/CLHEP/install/include/CLHEP/Units/PhysicalConstants.h:78: warning: ‘CLHEP::electron_charge’ defined but not used
make[1]: *** [../../tmp/Linux-g++/Gate/GateSurface.o] Error 1
source/geometry finished
Entering source/digitizer ...
make[1]: Nothing to be done for `obj'.
source/digitizer finished
Entering source/output ...
make[1]: Nothing to be don

If I define $ROOT_SYS and $LMF_HOME, I still can not make gate sucessfully.

Pls help me, guys, I spent a lot of time on it, but can not make it. This is the 
last step for me to become a real GATE USER.

Thank you so much.


_________________________________________________________________
微软地图率先推出跨城市多点驾车路线查询!
http://ditu.live.com/?form=MRAHAB&rtp=pos.30.454167_116.308611_%E5%A4%AA%E6%B9%96__~pos.29.554046_115.983427_%E5%BA%90%E5%B1%B1__~pos.29.116111_110.478889_%E5%BC%A0%E5%AE%B6%E7%95%8C__&rtop=0~0~0&encType=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20081218/52c73753/attachment.htm>


More information about the Gate-users mailing list