Hi,<br><br>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)).<br>
Then the $GATEHOME environment variable MUST be the absolute path of the gate source directory, not a relative path... and not $PWD<br>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).<br>
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.<br><br>(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...)<br>
<br>Hope this helps !<br>Simon<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 8:33 PM, <span dir="ltr"><<a href="mailto:u.pietrzyk@fz-juelich.de">u.pietrzyk@fz-juelich.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Arda,<br>
<br>
besides the many other path, etc statements in the .cshrc - file I have<br>
the following command added:<br>
alias start_GATE 'source /Applications/geant4.9.1.p02/env.csh ; source /Applications/gate_v4.0.0/env_gate.csh'<br>
<br>
which I type in any directory, where I have my .mac -files, etc. for GATE and then I can<br>
tyoe "Gate" right aways to start the simulation.<br>
<br>
Let me know, if this helps, otherwise I will send you my complete<br>
.cshrc file, which however needs some cleaning first.<br>
<br>
Kind regards,<br>
<br>
Uwe<br>
<br>
-----<br>
Prof. Dr. Uwe Pietrzyk<br>
Diplom-Physiker<br>
Institut für Medizin<br>
Forschungszentrum Jülich GmbH<br>
52425 Jülich<br>
Tel: +49-2461-61 4763<br>
Fax: +49-2461-61 2820 + 8229<br>
Mobil: +49-162-103-4871<br>
EMail: <a href="mailto:U.Pietrzyk@fz-juelich.de">U.Pietrzyk@fz-juelich.de</a><br>
<a href="http://www.fz-juelich.de/ime/ime_mitarbeiter_pietrzyk" target="_blank">http://www.fz-juelich.de/ime/ime_mitarbeiter_pietrzyk</a><br>
<br>
----- Originalnachricht -----<br>
Von: Arda Konik <<a href="mailto:arda-konik@uiowa.edu">arda-konik@uiowa.edu</a>><br>
Datum: Dienstag, Dezember 2, 2008 7:20 pm<br>
Betreff: [Gate-users] How can make "Gate" command available in differentdirectories<br>
<div><div></div><div class="Wj3C7c"><br>
> Hi,<br>
><br>
> I can' t generate "Gate" command when I type " source<br>
> /Applications/<br>
> gate/gate_v4.0.0/env_gate.sh " in my work directory "<br>
> /Applications/<br>
> work_gate " .<br>
><br>
> Interestingly, when i am in GATEHOME<br>
> (/Applications/gate/gate_v4.0.0)<br>
> directory, I can generate the "Gate" command ONLY if i source the<br>
> env_gate.sh twice !?<br>
> (i.e. I source it once and Gate command is not generated...i<br>
> source<br>
> it again and I have the Gate command). And the output files are<br>
> created in this directory (GATEHOME).<br>
><br>
> I tried to set $GATEHOME=.pwd but it didnt help..I copied part<br>
> of<br>
> my " env_gate.sh" here which is similar to my gate installation on<br>
> my<br>
> other machine (ubuntu).<br>
><br>
><br>
> export G4VERSION=9.1<br>
> export G4INSTALL=/Applications/geant4/geant4.9.1.p03<br>
> #export LMF_HOME=/Applications/lmf/lmf_v3.0<br>
> export<br>
> LD_LIBRARY_PATH=/Applications/ROOT/root/lib:/Applications/CLHEP/<br>
> lib:$LD_LIBRARY_PATH<br>
> export DYLD_LIBRARY_PATH=/Applications/ROOT/root/lib:/Applications/<br>
> CLHEP/lib:$DYLD_LIBRARY_PATH<br>
> export ECAT7_HOME=/Applications/ecat/ecat<br>
> export<br>
> PATH=/Applications/ROOT/root/bin:/Applications/gate/gate_v4.0.0/<br>
> bin/Linux-g++:${PATH}<br>
> export GATEHOME=/Applications/gate/gate_v4.0.0<br>
> export ROOTSYS=/Applications/ROOT/root<br>
><br>
> Thanks for any help,<br>
><br>
> Arda Konik<br>
> University of Iowa<br>
><br>
><br>
> On Dec 2, 2008, at 11:25 AM, Nicolas Spalinger wrote:<br>
><br>
> > Dear GATErs,<br>
> ><br>
> > A quick note to remind all new website registrants that the login<br>
> on<br>
> > the<br>
> > new website is not your email address but firstname.lastname.<br>
> ><br>
> > Let us know if you encounter problems by contacting support -at-<br>
> > healthgrid -dot- org<br>
> ><br>
> > Best regards.<br>
> ><br>
> > --<br>
> > Nicolas Spalinger<br>
> > HealthGrid CTO - research engineer<br>
> > <a href="http://www.healthgrid.org" target="_blank">http://www.healthgrid.org</a><br>
> ><br>
> > _______________________________________________<br>
> > Gate-users mailing list<br>
> > <a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
> > <a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
><br>
> _______________________________________________<br>
> Gate-users mailing list<br>
> <a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
> <a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
><br>
<br>
<br>
<br>
</div></div>-------------------------------------------------------------------<br>
-------------------------------------------------------------------<br>
Forschungszentrum Jülich GmbH<br>
52425 Jülich<br>
<br>
Sitz der Gesellschaft: Jülich<br>
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498<br>
Vorsitzende des Aufsichtsrats: MinDir'in Bärbel Brumme-Bothe<br>
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender),<br>
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,<br>
Dr. Sebastian M. Schmidt<br>
-------------------------------------------------------------------<br>
-------------------------------------------------------------------<br>
<br>
<br>_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.healthgrid.org">Gate-users@lists.healthgrid.org</a><br>
<a href="http://lists.healthgrid.org/mailman/listinfo/gate-users" target="_blank">http://lists.healthgrid.org/mailman/listinfo/gate-users</a><br>
<br></blockquote></div><br>