[Gate-users] Error In Installing Gate

Berker, Yannick Yannick.Berker at philips.com
Wed Nov 16 08:33:25 CET 2011


Hi Michael,

As I wrote in my last email:
> make sure your linker finds the required ROOT
> libraries (Cint, Core, ...) [...] check that they are
> where they are supposed to be.

for example, run this command:
ls $ROOTSYS/lib/lib*.so

In my case, it lists 107 files, including for example Cint, Core and also those reported missing by your linker (Xt, Gpad, ...). Is this the case for you? If not, your root build is probably incomplete. If yes, it seems as if your linker needs to be properly configured, and you should refer to your linker's documentation.

Regards,
Yannick
________________________________________
From: gate-users-bounces at lists.opengatecollaboration.org [gate-users-bounces at lists.opengatecollaboration.org] on behalf of Michael [zb890707 at 126.com]
Sent: Wednesday, November 16, 2011 06:47
To: gate-users at lists.opengatecollaboration.org
Subject: [Gate-users] Error In Installing Gate

Dear Gaters:

I try to install Gate again.
But when I 'make', the problems still remain.
I have installed clhep, geant4 and root just following the guide.
When installing the gate, before 'source env_gate.sh',
I added commands to the top of the file "env_gate.sh" as follows:

export GATEHOME=/GATE_ROOT/gate_v6.1
export G4INSTALL=/GATE_ROOT/geant4.9.4
export G4VERSION=9.4
export ROOTSYS=/GATE_ROOT/root
export CPATH=$CPATH:$ROOTSYS/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ROOTSYS}/lib
export PATH=$PATH:$ROOTSYS/lib:$GATEHOME/bin/$G4SYSTEM
export PATH=${ROOTSYS}/bin:${GATEHOME}/bin/Linux-g++:${GATEHOME}/tmp/Linux-g++/Gate:${PATH}

Then. When 'source env_gate.sh', everything seems to be ok.

The current value of G4INSTALL is: /GATE_ROOT/geant4.9.4
The current value of G4VERSION is: 9.4
Launching Geant4 configuration script /GATE_ROOT/geant4.9.4/env.sh

On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/GATE_ROOT/geant4.9.4
On this machine the G4INCLUDE=/GATE_ROOT/geant4.9.4/include/
On this machine the G4LIB=/GATE_ROOT/geant4.9.4/lib
On this machine the G4LEVELGAMMADATA=/GATE_ROOT/geant4.9.4/data/PhotonEvaporation2.1
On this machine the G4RADIOACTIVEDATA=/GATE_ROOT/geant4.9.4/data/RadioactiveDecay3.3
On this machine the G4LEDATA=/GATE_ROOT/geant4.9.4/data/G4EMLOW6.19
On this machine the G4NEUTRONHPDATA=/GATE_ROOT/geant4.9.4/data/G4NDL3.14
On this machine the G4ABLADATA=/GATE_ROOT/geant4.9.4/data/G4ABLA3.0
On this machine the G4REALSURFACEDATA=/GATE_ROOT/geant4.9.4/data/RealSurface1.0
On this machine the G4NEUTRONXSDATA=/GATE_ROOT/geant4.9.4/data/G4NEUTRONXS1.0
On this machine the G4PIIDATA=/GATE_ROOT/geant4.9.4/data/G4PII1.2
On this machine the CLHEP_BASE_DIR=/GATE_ROOT/clhep
On this machine the CLHEP_INCLUDE_DIR=/GATE_ROOT/clhep/include
On this machine the CLHEP_LIB_DIR=/GATE_ROOT/clhep/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4UI_USE_TCSH=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

Configuring GATE options

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 disabled
Checking your LD_LIBRARY_PATH variable...
 ==> OK: /GATE_ROOT/root/lib is already in your LD_LIBRARY_PATH
Use of ROOT enabled
ROOT real-time plotter disabled
LMF data output disabled
ECAT7 data output disabled
GATEHOME is set to /GATE_ROOT/gate_v6.1
Checking your path variable...
 ==> OK: /GATE_ROOT/gate_v6.1/bin/Linux-g++ is already in your path variable
Checking your LD_LIBRARY_PATH variable...
 ==> OK: /GATE_ROOT/gate_v6.1/tmp/Linux-g++/Gate added to your path variable
G4VERSION9_3 is set: GATE is compatible with the GEANT4 version 9.3 and 9.4

Done

But. When 'make', problem arises:

Compiling GateVSourceVoxelTranslator.cc ...
source/physics finished
Creating shared library tmp/Linux-g++/Gate/libGate.so ...
Compiling Gate.cc ...
In file included from ./source/digits_hits/include/GateUserActions.hh:40:0,
                 from Gate.cc:17:
/GATE_ROOT/geant4.9.4/include/G4VTrajectory.hh:86:17: warning: ‘virtual void G4VTrajectory::ShowTrajectory(std::ostream&) const’ was hidden
./source/digits_hits/include/GateTrajectory.hh:75:17: warning:   by ‘virtual void GateTrajectory::ShowTrajectory() const’
Using global libraries ...
Linking Gate
/usr/bin/ld: cannot find -lXt
/usr/bin/ld: cannot find -lGpad
/usr/bin/ld: cannot find -lHist
/usr/bin/ld: cannot find -lGraf
/usr/bin/ld: cannot find -lGraf3d
/usr/bin/ld: cannot find -lTree
/usr/bin/ld: cannot find -lRint
/usr/bin/ld: cannot find -lPostscript
/usr/bin/ld: cannot find -lMatrix
/usr/bin/ld: cannot find -lPhysics
/usr/bin/ld: cannot find -lMathCore
/usr/bin/ld: cannot find -lRIO
/usr/bin/ld: cannot find -lNet
/usr/bin/ld: cannot find -lThread
/usr/bin/ld: cannot find -lCore
/usr/bin/ld: cannot find -lCint
collect2: ld returned 1 exit status
make: *** [bin/Linux-g++/Gate] 错误 1

I am a beginner and I really have no idea.
Please help me. Thank you indeed.

_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


More information about the Gate-users mailing list