Message: Re: linking error after moving g4work folder... Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: linking error after moving g4work folder... 

Forum: Run Management
Re: Question linking error after moving g4work folder... (Clare Huang)
Date: 04 Jul, 2012
From: Leila Moghadasi <Leila Moghadasi>

Hi Clare You can edit your ".bashrc" file and give the correct path to the compiler as follows: in a terminal type "emacs .bashrc", your .bashrc file will be opened. Then if you are using a Bourne Shell or Korn Shell add following lines to your .bashrc (if you are using other shells adjust these commands for those shell refering to the installation link "export G4WORKDIR=~/g4work" "export LD_LIBRARY_PATH=~/CLHEP/$LD_LIBRARY_PATH" "source ~/Geant4/geant4.9.4.p04/> .out" "export PATH=~/g4work/bin/Linux-g++:$PATH" Remember the file is case sensitive so type the above paths according to your own settings. The last line defines where the compilers should look for g4work, mine is in home directory thus the path is indicated by "~", you should type your path to g4work. After that, save the .bashrc file and close it. In a fresh terminal window move to your home directory and type: "dos2unix .bashrc" , the file will be converted to unix format and then I think it should work. Cheers Leila

 Add Message Add Message
to: "Re: linking error after moving g4work folder..."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]