[gate-users] GATE Installation

Michal Lijowski michal at cvu.wustl.edu
Fri Aug 6 23:58:23 CEST 2004


 I followed the Corinne's  GEANT4 Installation Manual to 
 reinstall GEANT 4.5.2.p02 in Red Hat FC2. I had problems 
 running examples in novice subdirectory, but after copying
 shared library from e.g.  
        examples/novice/N01/tmp/Linux-g++/exampleN01/

to directory examples/novice/N01/bin/Linux-g++/ where 
the exampleN01 binary is located the example ran OK.

So, I have tried to install GATE using different scripts.

[michal at ml-cvu gate_v1.0.1]$ source env_gate.csh
bash: env_gate.csh: line 137: syntax error near unexpected token `else'
bash: env_gate.csh: line 137: `    else'



[michal at ml-cvu gate_v1.0.1]$ bash -x myenv_gate.sh
+ G4VERSION=5.2.p02
+ echo /home/michal/cern/geant4
/home/michal/cern/geant4
+ echo 5.2.p02
5.2.p02
+ '[' /home/michal/cern/geant4 = invalid ']'
+ '[' 5.2.p02 = invalid ']'
+ echo 'The current value of G4INSTALL is: /home/michal/cern/geant4'
The current value of G4INSTALL is: /home/michal/cern/geant4
+ echo 'The current value of G4VERSION is: 5.2.p02'
The current value of G4VERSION is: 5.2.p02
+ echo ''
 
+ echo 'Launching Geant4 configuration script
/home/michal/cern/geant4/env.sh'
Launching Geant4 configuration script /home/michal/cern/geant4/env.sh
+ echo ''
 
+ '[' '!' -d /home/michal/cern/geant4 ']'
+ '[' -f /home/michal/cern/geant4/config/scripts/env.sh.SH ']'
+ echo /home/michal/cern/geant4
/home/michal/cern/geant4
+ source /home/michal/cern/geant4/config/scripts/env.sh.SH
++ test -f config.sh
++ test -f ../config.sh
++ test -f ../../config.sh
++ test -f ../../../config.sh
++ test -f ../../../../config.sh
++ echo 'Can'\''t find config.sh.'
Can't find config.sh.
++ exit 1

I have attached myenv_gate.sh script and I appreciate any help.

Michal 



On Sun, 2004-08-01 at 11:56, Groiselle, Corinne wrote:
>  Hi Michal, 
> 
> Setting G4WORKDIR to the local directory was just to create the binary file in a local bin directory instead of creating it in the general geant4.5.2.p02/bin directory.
> 
> Anyway, I attached the installation guide used at UMASS to install G4 on our different workstations.
> 
> Hope this helps,
> 
> -- Corinne
> 
> PS. Please, keep sending a copy of the emails you send to the users mailing list directly to my email address as for some reason I don't receive all the emails sent to the different GATE mailing lists!
> 
>  
> 
>   Corinne,
> 
>    I compiled geant4.5.p05 from source and I could compile examples in
>    geant4.5.p02/examples/novice/N01 and run them without setting $G4WORKDIR.
>    I am out of town for the this week and I won't have access to my
>    computer. But you are willing, please send your GEANT "cookbook".
>    Thank you,
> 
>     Michal
> 
> > It's a silly question, but are you sure that everything went well during
> > the install and compilation?
> > Did you try to run the novice examples?
> > I don't know if you're familiar with G4, but you should reinstall
> > everything from scratch, and recompile.
> > Then you should source G4, go to geant4.5.p02/examples/novice/N01 and
> > set $G4WORKDIR to . before you compile and run the example.
> > I have a "cookbook" for the G4 install, I can send it to you with the
> > parameters I used if you want.
> >
> > Good luck!
> >
> > -- Corinne
> >
> > Michal Lijowski wrote:
> >
> >>In the geant distribution I have installed the directory
> >>geant4.5.2.p02/.config/ is empty.
> >>
> >>[michal at ml-cvu cern]$ ll  geant4.5.2.p02/.config/
> >>total 0
> >>
> >>Thank you for your prompt response.
> >>
> >>Michal
> >>
> >>
> >>On Fri, 2004-07-30 at 12:50, Corinne J Groiselle wrote:
> >>
> >>
> >>>I agree with Ross! ;-)
> >>>I had the same problem the first time I installed GATE.
> >>>
> >>>Either you modify env_gate.csh and put the path of the G4 env.csh file
> >>>or you just create a symbolic link in $G4INSTALL as it's where GATE is
> >>>looking for the file by default.
> >>>
> >>>Actually, I solved the problem by doing all the sourcing every time I
> >>>open a new xterm window by modifying the .bashrc file and including
> >>>the following lines:
> >>>
> >>># source ROOT
> >>>source /sullivan/corinne/MonteCarloSimulator/env_files/env_root.sh
> >>># source CLHEP
> >>>source /sullivan/corinne/MonteCarloSimulator/env_files/env_CLHEP.sh
> >>># source LMF
> >>>source /sullivan/corinne/MonteCarloSimulator/env_files/env_lmf.sh
> >>># source ecat
> >>>source /sullivan/corinne/MonteCarloSimulator/env_files/env_ecat7.sh
> >>># source geant
> >>>source
> >>>/sullivan/corinne/MonteCarloSimulator/geant4/.config/bin/Linux-g++/env.sh
> >>># source Gate
> >>>export G4VERSION=5.2
> >>>export GATEHOME=/sullivan/corinne/MonteCarloSimulator/petsim
> >>>source /sullivan/corinne/MonteCarloSimulator/env_files/env_gate.sh
> >>>
> >>>That way, I am sure I won't forget to source the different env files
> >>>before I begin a simulation!
> >>>
> >>>-- Corinne
> >>>
> >>>Schmidtlein, Ross/Medical Physics wrote:
> >>>
> >>>
> >>>>Look in ./geant4.5.2.p02/.config/bin/Linux-g++/
> >>>>
> >>>>It should be there.
> >>>>
> >>>>ross
> >>>>
> >>>>-----Original Message-----
> >>>>From: gate-users-bounces at lphe1pet1.epfl.ch
> >>>>[mailto:gate-users-bounces at lphe1pet1.epfl.ch] On Behalf Of Michal
> >>>>Lijowski
> >>>>Sent: Friday, July 30, 2004 1:28 PM
> >>>>To: gate-users at lphe1pet1.epfl.ch
> >>>>Subject: [gate-users] GATE Installation
> >>>>
> >>>>
> >>>>I have been trying to install gate_v1.0.1 on Red Hat Fedora Core 2 with
> >>>>gcc 3.3.3. I have modified the env_gate.csh script so I can run the
> >>>>script in bash shell. The script is in attachment.
> >>>>
> >>>>The installed GEANT version is 4.5.2p02. My question is about
> >>>>GEANT configuration file which is invoked in env_gate.csh script. The
> >>>>only env.csh file in this GEANT version is in
> >>>>geant4.5.2.p02/examples/extended/biasing/B03/env.csh directory. Which
> >>>>GEANT file is appropriate configuration file to be used for
> >>>>GATE configuration?
> >>>>
> >>>>Thank you,
> >>>>
> >>>>Michal Lijowski
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>     =====================================================================
> >>>>
> >>>>     Please note that this e-mail and any files transmitted with it may
> >>>> be
> >>>>     privileged, confidential, and protected from disclosure under
> >>>>     applicable law. If the reader of this message is not the intended
> >>>>     recipient, or an employee or agent responsible for delivering this
> >>>>     message to the intended recipient, you are hereby notified that
> >>>> any
> >>>>     reading, dissemination, distribution, copying, or other use of
> >>>> this
> >>>>     communication or any of its attachments is strictly prohibited.
> >>>> If
> >>>>     you have received this communication in error, please notify the
> >>>>     sender immediately by replying to this message and deleting this
> >>>>     message, any attachments, and all copies and backups from your
> >>>>     computer.
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>gate-users mailing list
> >>>>gate-users at lphe1pet1.epfl.ch
> >>>>http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
> >>>>
> >>>>
> >>>>
> >>>--
> >>>
> >>>
> >>>______________________________________________________________________
> >>>Corinne J. Groiselle, PhD
> >>>
> >>>Research instructor
> >>>
> >>>Division of Nuclear Medicine / Department of Radiology
> >>>University of Massachusetts Medical School
> >>>55 Lake Avenue North
> >>>Worcester, MA 01655
> >>>USA
> >>>
> >>>phone: (508)-856-6123 - fax: (508)-856-4572
> >>>e-mail: Corinne.Groiselle at umassmed.edu
> >>>professional homepage: http://users.umassmed.edu/corinne.groiselle
> >>>personal homepage: http://corinne.groiselle.free.fr
> >>>
> >>>
> >>>
> >>>______________________________________________________________________
> >>>_______________________________________________
> >>>gate-users mailing list
> >>>gate-users at lphe1pet1.epfl.ch
> >>>http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
> >>>
> >>>
> >>
> >>_______________________________________________
> >>gate-users mailing list
> >>gate-users at lphe1pet1.epfl.ch
> >>http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
> >>
> >>
> >
> > --
> >
> > ------------------------------------------------------------------------
> > Corinne J. Groiselle, PhD
> > Research instructor
> >
> > Division of Nuclear Medicine / Department of Radiology
> > University of Massachusetts Medical School
> > 55 Lake Avenue North
> > Worcester, MA 01655
> > USA
> >
> > _phone_: (508)-856-6123 - fax: (508)-856-4572
> > _e-mail_: Corinne.Groiselle at umassmed.edu
> > _professional homepage_: http://users.umassmed.edu/corinne.groiselle
> > _personal homepage_: http://corinne.groiselle.free.fr
> >
> >
> > _______________________________________________
> > gate-users mailing list
> > gate-users at lphe1pet1.epfl.ch
> > http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
> >
> 
> 
> 
> 
> ______________________________________________________________________
> _______________________________________________
> gate-users mailing list
> gate-users at lphe1pet1.epfl.ch
> http://lphe1pet1.epfl.ch/mailman/listinfo/gate-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myenv_gate.sh
Type: application/x-shellscript
Size: 6435 bytes
Desc: not available
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20040806/30c67c72/attachment.bin>


More information about the Gate-users mailing list