[Gate-users] How can make "Gate" command available indifferentdirectories
Arda Konik
arda-konik at uiowa.edu
Thu Dec 4 15:43:36 CET 2008
Thanks Uwe and Simon for your helps and clarifications.
I replaced " Linux-g++ " in my $PATH environment with "Darwin-g+
+" (in my .bash_profile) and now i can run Gate from any directory.
That is,
export PATH=/Applications/gate/gate_v4.0.0/bin/Darwin-g++
Arda Konik
University of Iowa
On Dec 4, 2008, at 4:48 AM, Simon Stute wrote:
> Hi,
>
> The gate_env.(c)sh files are totally directory independent, you can
> source its from any directory, the result is the same (and this
> environment file automatically source the env.(c)sh of the geant4
> libraries if you correctly set the G4INSTALL environment variable
> before as it is mentioned in the gate installation recommendations
> (fix it in your bashrc ou cshrc file for example, as for the
> GATEHOME and G4VERSION variables)).
> Then the $GATEHOME environment variable MUST be the absolute path of
> the gate source directory, not a relative path... and not $PWD
> And then if you want to launch the Gate application, just add the
> path $GATEHOME/bin/G4SYSTEM in your $PATH environment variable (that
> is global) (you must adapt the G4SYSTEM variable to your own) (and
> fix it in your bashrc or cshrc file too).
> If those 3 items are correctly done you will be able to launch Gate
> in any directory just by typing 'Gate', as for any other application
> under unix systems.
>
> (and sourcing your environment file do not create your Gate binary
> file or your 'Gate command', it has been created during the
> compilation and will not disappear...)
>
> Hope this helps !
> Simon
>
> On Tue, Dec 2, 2008 at 8:33 PM, <u.pietrzyk at fz-juelich.de> wrote:
>
> Hi Arda,
>
> besides the many other path, etc statements in the .cshrc - file I
> have
> the following command added:
> alias start_GATE 'source /Applications/geant4.9.1.p02/
> env.csh ; source /Applications/gate_v4.0.0/env_gate.csh'
>
> which I type in any directory, where I have my .mac -files, etc. for
> GATE and then I can
> tyoe "Gate" right aways to start the simulation.
>
> Let me know, if this helps, otherwise I will send you my complete
> .cshrc file, which however needs some cleaning first.
>
> Kind regards,
>
> Uwe
>
> -----
> Prof. Dr. Uwe Pietrzyk
> Diplom-Physiker
> Institut für Medizin
> Forschungszentrum Jülich GmbH
> 52425 Jülich
> Tel: +49-2461-61 4763
> Fax: +49-2461-61 2820 + 8229
> Mobil: +49-162-103-4871
> EMail: U.Pietrzyk at fz-juelich.de
> http://www.fz-juelich.de/ime/ime_mitarbeiter_pietrzyk
>
> ----- Originalnachricht -----
> Von: Arda Konik <arda-konik at uiowa.edu>
> Datum: Dienstag, Dezember 2, 2008 7:20 pm
> Betreff: [Gate-users] How can make "Gate" command available in
> differentdirectories
>
> > Hi,
> >
> > I can' t generate "Gate" command when I type " source
> > /Applications/
> > gate/gate_v4.0.0/env_gate.sh " in my work directory "
> > /Applications/
> > work_gate " .
> >
> > Interestingly, when i am in GATEHOME
> > (/Applications/gate/gate_v4.0.0)
> > directory, I can generate the "Gate" command ONLY if i source the
> > env_gate.sh twice !?
> > (i.e. I source it once and Gate command is not generated...i
> > source
> > it again and I have the Gate command). And the output files are
> > created in this directory (GATEHOME).
> >
> > I tried to set $GATEHOME=.pwd but it didnt help..I copied part
> > of
> > my " env_gate.sh" here which is similar to my gate installation on
> > my
> > other machine (ubuntu).
> >
> >
> > export G4VERSION=9.1
> > export G4INSTALL=/Applications/geant4/geant4.9.1.p03
> > #export LMF_HOME=/Applications/lmf/lmf_v3.0
> > export
> > LD_LIBRARY_PATH=/Applications/ROOT/root/lib:/Applications/CLHEP/
> > lib:$LD_LIBRARY_PATH
> > export DYLD_LIBRARY_PATH=/Applications/ROOT/root/lib:/Applications/
> > CLHEP/lib:$DYLD_LIBRARY_PATH
> > export ECAT7_HOME=/Applications/ecat/ecat
> > export
> > PATH=/Applications/ROOT/root/bin:/Applications/gate/gate_v4.0.0/
> > bin/Linux-g++:${PATH}
> > export GATEHOME=/Applications/gate/gate_v4.0.0
> > export ROOTSYS=/Applications/ROOT/root
> >
> > Thanks for any help,
> >
> > Arda Konik
> > University of Iowa
> >
> >
> > On Dec 2, 2008, at 11:25 AM, Nicolas Spalinger wrote:
> >
> > > Dear GATErs,
> > >
> > > A quick note to remind all new website registrants that the login
> > on
> > > the
> > > new website is not your email address but firstname.lastname.
> > >
> > > Let us know if you encounter problems by contacting support -at-
> > > healthgrid -dot- org
> > >
> > > Best regards.
> > >
> > > --
> > > Nicolas Spalinger
> > > HealthGrid CTO - research engineer
> > > http://www.healthgrid.org
> > >
> > > _______________________________________________
> > > Gate-users mailing list
> > > Gate-users at lists.healthgrid.org
> > > http://lists.healthgrid.org/mailman/listinfo/gate-users
> >
> > _______________________________________________
> > Gate-users mailing list
> > Gate-users at lists.healthgrid.org
> > http://lists.healthgrid.org/mailman/listinfo/gate-users
> >
>
>
>
> -------------------------------------------------------------------
> -------------------------------------------------------------------
> Forschungszentrum Jülich GmbH
> 52425 Jülich
>
> Sitz der Gesellschaft: Jülich
> Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
> Vorsitzende des Aufsichtsrats: MinDir'in Bärbel Brumme-Bothe
> Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender),
> Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
> Dr. Sebastian M. Schmidt
> -------------------------------------------------------------------
> -------------------------------------------------------------------
>
>
> _______________________________________________
> 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/20081204/e759074a/attachment.htm>
More information about the Gate-users
mailing list