[Gate-users] Gate installation
Arnulfo Martinez
arnulfo at fisica.unam.mx
Wed Mar 9 22:27:23 CET 2011
Nicolas,
I've just compiled and run Gate v.6.1 on a Mac and it works fine. I
think you haven't defined correctly your LD_LIBRARY_PATH, as in newer
versions of Root (I'm using v.5.26) it should be:
LD_LIBRARY_PATH=$ROOTSYS/lib/root
Also, DYLD_LIBRARY_PATH is no longer needed. These should be the
settings for Root:
export ROOTSYS=[whatever the path where you installed it]
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib/root:$LD_LIBRARY_PATH
Finally, there are two errors at link time related to GateCommon.gmk
(which is called by GNUMakefile):
---------------------------------------------------------------------
...
Creating shared library tmp/Darwin-g++/Gate/libGate.dylib ...
Using global libraries ...
Linking Gate
ld: warning: directory '/usr/X11R6/lib64' following -L not found
ld: warning: directory 'OOTSYS/lib' following -L not found
... Done!
---------------------------------------------------------------------
You have to edit GateCommon.gmk and:
- change line 90 to solve the first problem,
LDFLAGS += -L/usr/X11R6/lib -lXt
- change line 48 to solve the second problem,
EXTRALIBS += -L$(ROOTSYS)/lib $(shell $(ROOTSYS)/bin/root-config
--libs) -ldl
Hope this helps.
---
Arnulfo Martinez-Davalos, Ph.D.
Instituto de Fisica, UNAM
A.P. 20-364
01000 Mexico D.F.
Tel. +52 (55) 5622-5074
Fax +52 (55) 5616-1535
On 3/8/11 7:53 PM, Nicolas Salem wrote:
> Hi, this fix did not work.
>
> I had these set at the beginning of env_gate.sh
>
> export OPENGATE_HOME=/Users/NSalem/Documents/GateRoot
> export GATEHOME=$OPENGATE_HOME/gate_v6.1
> export G4VERSION="9.4"
> export G4INSTALL=$OPENGATE_HOME/geant4.9.4.p01
> export ROOTSYS=$OPENGATE_HOME/root
> export DYLD_LIBRARY_PATH=$ROOTSYS/lib
> export LD_LIBRARY_PATH=$ROOTSYS/lib
>
> ROOTSYS is thus set when I source the file. I changed GNUmakefile, but the error
> message remained the same. The ROOT include directory is there as well. Any idea
> what may be causing this?
>
> Selon Didier Benoit<benoit at imnc.in2p3.fr>:
>
>> Hi Nicolas,
>>
>> You have a problem with ROOT, could you check your ROOTSYS variable.
>> During the compilation the ROOT header files are missing.
>> If you are the problem still, just add this line in the GNUmakefile:
>>
>> CPPFLAGS += -I/Users/NSalem/Documents/GateRoot/root
>>
>> Check also if there is the ROOT include directory in
>> /Users/NSalem/Documents/GateRoot/root
>>
>> Kind Regards,
>> Didier Benoit
>>
>> On 03/08/2011 03:27 AM, Nicolas Salem wrote:
>>> Hi, I am trying to run gate6.1 on a Mac OS X 10.6.6. I have followed all
>>> instructions in
>>>
>>> http://wiki.opengatecollaboration.org/index.php/InstallationGuide
>>>
>>> for "installing Gate on OSX Panther-Tiger". Everything went well until
>>> "Installing Gate". I then modified the file env_gate.sh by adding the
>> following
>>> lines at the beginning:
>>>
>>> export GATEHOME=/Users/NSalem/Documents/GateRoot/gate_v6.1
>>> export G4INSTALL=/Users/NSalem/Documents/GateRoot/geant4.9.4.p01
>>> export G4VERSION=9.4
>>> export ROOTSYS=/Users/NSalem/Documents/GateRoot/root
>>> export
>>>
>>
> LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ROOTSYS}/lib:/Users/NSalem/Documents/GateRoot/CLHEP/lib
>>> export PATH=$PATH:$ROOTSYS/lib:$GATEHOME/bin/$G4SYSTEM
>>>
>>> After typing source env_gate.sh, I then type make and I get the following
>> (see
>>> attached file). There are several errors in the output. I don't know
>> whether or
>>> not this is what is preventing me from launching Gate, but when I try the
>> PET
>>> benchmark, I get the following message:
>>>
>>> -bash: Gate: command not found
>>>
>>> Can someone help me figure out what the problem is?
>>>
>>>
>>>
>>> _______________________________________________
>>> Gate-users mailing list
>>> Gate-users at lists.opengatecollaboration.org
>>> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>>
>>
>> --
>> ----------------------------------------------------------------
>> Didier BENOIT, GATE Engineer
>>
>> Imagerie et Modélisation en Neurobiologie et Cancérologie (IMNC)
>> IMNC -- UMR 8165 CNRS -- Université Paris 7 -- Université Paris 11
>> Campus d'Orsay
>> Bâtiment 440
>> 91405 ORSAY Cedex
>>
>> Tél : (33) 1 69 15 68 76
>> E-mail : benoit at imnc.in2p3.fr
>> http://www.imnc.in2p3.fr
>> ----------------------------------------------------------------
>>
>>
>
>
>
> _______________________________________________
> Gate-users mailing list
> Gate-users at lists.opengatecollaboration.org
> http://lists.opengatecollaboration.org/mailman/listinfo/gate-users
>
>
More information about the Gate-users
mailing list