[Gate-users] Error running benchmarks

Marc Chamberland MarcChamberland at cmail.carleton.ca
Fri Jun 28 21:14:27 CEST 2013


First, figure out if you're using the bash or the csh (or tcsh) shell by typing the following on the command line:

echo $0

For the bash shell, you'll want to edit .bashrc; for csh or tcsh, you'll want to edit .cshrc. Then, from your home folder on the command line, you can type the following to make sure that the file exists:

ls -a

It should show all the files in this folder, including .bashrc (or .cschrc). If it does not exist, you can create it in your favourite text editor. Make sure to save it as .bashrc (or .cshrc) with no additional extension.

Open .bashrc (or .cshrc) with your favourite text editor. Make any appropriate changes. For example, you could add the following line if it is not already there:

source /path/to/geant4/bin/geant4.sh

Save and close the file. From the command line, make sure to re-source the .bashrc (or .cshrc) file to take the changes into account:

source ~/.bashrc


Hope this helps.

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On 2013-06-28, at 1:36 PM, Felix Rangel <felix.j.rangel at gmail.com<mailto:felix.j.rangel at gmail.com>>
 wrote:


I didn't do the g4 data on option when I installed geant4, so I have to manually add paths to the data libraries. And how exactly do I modify the  .bashrc file, I have an amateurish knowledge of Linux.

On Jun 28, 2013 4:37 AM, "Marc Chamberland" <MarcChamberland at cmail.carleton.ca<mailto:MarcChamberland at cmail.carleton.ca>> wrote:
Hi Felix,

G4LEDATA should be set when you source Geant4 (with the geant4.sh or .csh script).

Make sure to run the following command before launching Gate:

source [path to Geant4 installation]/bin/geant4.sh (or .csh)

Usually, you would include that line in your .bashrc or .cshrc file, so that you don't have to do this step manually every time.

You may also want to check the script and make sure that it is defining G4LEDATA correctly.

Marc



__________________________

Marc Chamberland, MSc
PhD candidate
Department of Physics
Carleton University
Ottawa (ON)

On 2013-06-27, at 11:13 PM, Felix Rangel <felix.rangel at radius-health.com<mailto:felix.rangel at radius-health.com>>
 wrote:

Does anyone know what can cause the following error:

Environment variable G4LEDATA not defined

It is generated after running the benchmarkPET.mac


--
Felix J. Rangel
Staff Engineer
Radius Health & Radius Diagnostic Research Inc.
CNSI Incubator Bldng 114; MC 722710
570 Westwood Plaza
Los Angeles, CA 90095-7227
felix.rangel at radius-health.com<mailto:felix.rangel at radius-health.com>
626-372-3583<tel:626-372-3583>
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org<mailto:Gate-users at lists.opengatecollaboration.org>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130628/c97cf4d1/attachment.html>


More information about the Gate-users mailing list