[Gate-users] gate5 compilation on Ubuntu problem
Marko T. Oreskovic
mtoreskovic at yahoo.com
Mon Oct 12 17:47:43 CEST 2009
Hi Simon,
I have done as you have said and manage to start a compilation process, but with errors.
This is now my output from terminal window:
mtr at mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ source env_gate.sh
The current value of G4INSTALL is: /usr/share/geant4/geant4.9.2.p01
The current value of G4VERSION is: 9.2
Launching Geant4 configuration script /usr/share/geant4/geant4.9.2.p01/env.sh
On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/usr/share/geant4/geant4.9.2.p01
On this machine the G4LIB=/usr/share/geant4/geant4.9.2.p01/lib
On this machine the G4LEVELGAMMADATA=/usr/share/geant4/geant4.9.2.p01/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/usr/share/geant4/geant4.9.2.p01/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/usr/share/geant4/geant4.9.2.p01/data/G4EMLOW6.2
On this machine the G4NEUTRONHPDATA=/usr/share/geant4/geant4.9.2.p01/data/G4NDL3.13
On this machine the G4ABLADATA=/usr/share/geant4/geant4.9.2.p01/data/G4ABLA3.0
On this machine the CLHEP_BASE_DIR=/usr/share/CLHEP
On this machine the CLHEP_INCLUDE_DIR=/usr/share/CLHEP/include
On this machine the CLHEP_LIB_DIR=/usr/share/CLHEP/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1
On this machine the G4VIS_USE_OPENGLX=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_STATIC=1
On this machine the G4LIB_USE_GRANULAR=1
On this machine the G4UI_USE_TCSH=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 enabled
/lib directory is no /home/mtr/root
you should check that ROOT shared libraries are included in LD_LIBRARY_PATH
Use of ROOT enabled
ROOT real-time plotter disabled
LMF data output disabled
ECAT7 data output disabled
GATEHOME is set to /usr/share/gate/gate_v5.0.0_p01
Checking your path variable...
==> OK: /usr/share/gate/gate_v5.0.0_p01/bin/Linux-g++ is already in your path variable
G4VERSION9_2 is set: GATE is compatible with the geant4 version 9.2
Done
mtr at mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ make
Making dependency for file Gate.cc ...
In file included from ./source/mandatory_G4_classes/include/GateSteppingAction.hh:34,
from Gate.cc:34:
./source/output/include/GateTrack.hh:10:19: error: TROOT.h: No such file or directory
./source/output/include/GateTrack.hh:11:19: error: TTree.h: No such file or directory
In file included from Gate.cc:53:
.
.
.etc...
I'm getting a lot of these TROOT.h, TTree.h errors. Is this a problem with root LD_LIBRARY_PATH ?
Here is how I configure my enviormental variables:
export ROOTSYS=/home/mtr/root
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=/home/mtr/root/lib:$LD_LIBRARY_PATH
ROOT is installed in /home/mtr/root directory, and there is a lib directory in there.
This is my LD_LIBRARY_PATH after export:
mtr at mtr-desktop:/usr/share/gate/gate_v5.0.0_p01$ printenv LD_LIBRARY_PATH
/home/mtr/root/lib:/usr/share/CLHEP/lib/:
regards
Marko
--- On Mon, 10/12/09, Simon Stute <gate.stute at gmail.com> wrote:
From: Simon Stute <gate.stute at gmail.com>
Subject: Re: [Gate-users] gate5 compilation on Ubuntu problem
To: "Marko T. Oreskovic" <mtoreskovic at yahoo.com>
Cc: gate-users at lists.healthgrid.org
Date: Monday, October 12, 2009, 10:49 AM
Hi,
When you launch a command as sudo, your personnal environment is not transmitted.
So give all rights to blk-desktop in your gate directory, then launch the compilation as 'you' (without sudo), and once the compilation is successful you can give back all rights to root.
Cheers,
Simon
On Fri, Oct 9, 2009 at 5:54 PM, Marko T. Oreskovic <mtoreskovic at yahoo.com> wrote:
Hi all,
I'm new to linux and having problems compiling gate5 on Ubuntu 9.04, here is my listing:
blk at blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ ls
benchmarks env_gate.sh GateMaterials.db Materials.xml README Surfaces.xml
Cluster_Tools examples GNUmakefile noverbose.mac ReleaseNotes.pdf variables.gmk
env_gate.csh Gate.cc license prerunGate.mac source
blk at blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ source env_gate.sh
The current value of G4INSTALL is: /usr/share/geant4/geant4.9.2.p01
The current value of G4VERSION is:
9.2
Launching Geant4 configuration script /usr/share/geant4/geant4.9.2.p01/env.sh
On this machine the G4SYSTEM=Linux-g++
On this machine the G4INSTALL=/usr/share/geant4/geant4.9.2.p01
On this machine the G4LIB=/usr/share/geant4/geant4.9.2.p01/lib
On this machine the G4LEVELGAMMADATA=/usr/share/geant4/geant4.9.2.p01/data/PhotonEvaporation2.0
On this machine the G4RADIOACTIVEDATA=/usr/share/geant4/geant4.9.2.p01/data/RadioactiveDecay3.2
On this machine the G4LEDATA=/usr/share/geant4/geant4.9.2.p01/data/G4EMLOW6.2
On this machine the G4NEUTRONHPDATA=/usr/share/geant4/geant4.9.2.p01/data/G4NDL3.13
On this machine the G4ABLADATA=/usr/share/geant4/geant4.9.2.p01/data/G4ABLA3.0
On this machine the CLHEP_BASE_DIR=/usr/share/CLHEP
On this machine the CLHEP_INCLUDE_DIR=/usr/share/CLHEP/include
On this machine the CLHEP_LIB_DIR=/usr/share/CLHEP/lib
On this machine the CLHEP_LIB=CLHEP
On this machine the
G4VIS_BUILD_OPENGLX_DRIVER=1
On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=1
On this machine the G4VIS_USE_OPENGLX=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_STATIC=1
On this machine the G4LIB_USE_GRANULAR=1
On this machine the G4UI_USE_TCSH=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 enabled
Use of ROOT disabled
ROOT real-time plotter disabled
LMF data output disabled
ECAT7 data output disabled
GATEHOME is set to /usr/share/gate/gate_v5.0.0_p01
Checking your path variable...
==> OK: /usr/share/gate/gate_v5.0.0_p01/bin/Linux-g++ is
already in your path variable
G4VERSION9_2 is set: GATE is compatible with the geant4 version 9.2
Done
blk at blk-desktop:/usr/share/gate/gate_v5.0.0_p01$
blk at blk-desktop:/usr/share/gate/gate_v5.0.0_p01$ sudo make
GNUmakefile:20: /variables.gmk: No such file or directory
GNUmakefile:22: /config/binmake.gmk: No such file or directory
make: *** No rule to make target `/config/binmake.gmk'. Stop.
I have tried using just make, without sudo, but then I'm getting no permission errors.
I have seen this problem posted before but no answers. Only one answer was about setting a
date two years back, but that did not help.
Any hints ?
_______________________________________________
Gate-users mailing list
Gate-users at lists.healthgrid.org
http://lists.healthgrid.org/mailman/listinfo/gate-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20091012/edeff9cb/attachment.htm>
More information about the Gate-users
mailing list