[Gate-users] GATE (config/architecture.gmk)

David Boersma david.boersma at physics.uu.se
Thu May 4 12:33:24 CEST 2017


Hi Manh Cam,

In principle this is not a GATE problem but a geant4 problem, which you 
should ask on a geant4 mailing list.

But I can try. I see in the screenshot of your first mail about this 
topic that you are running "make" directly in the B1 directory. I think 
that this is not how it is supposed to be done. If the full path of your 
B1 directory is

~/g4work/B1

then create a new directory

mkdir ~/g4work/B1-build
cd ~/g4work/B1-build

then after sourcing geant4.sh, you first need to run "cmake" and then 
"make":

source /home/manhcam0510/geant4/geant4.10.01.p03-install/bin/geant4.sh
cmake ../B1
make

Could you try this and see if it works? Or that at least you run into a 
different error than before?

HTH,
David


Den 03/05/2017 kl. 17:20, skrev Mạnh Cầm Nguyễn:
> Dear David, Gate users,
>
> Oh thank you.
> So I have my environment variables updated. But the problem still
> remains when I run the example B1:
> *bash:
> /home/manhcam0510/geant4/geant4.10.01.p03-install/share/Geant4-10.1.3/gean4make/geant4make.sh:
> No such file or directory
> *
> Can anyone show me how to fix it??
>
> Thanks in advance,
> Manh Cam
>
>
>
> Nguyễn Mạnh Cầm
> Undergraduate Student
> Department of Nuclear Physics & Engineering
> Faculty of Physics & Engineering Physics
> University of Science, VNU-HCM, Ho Chi Minh City, Vietnam
> Telephone: 0968 922 796
>
> On Wed, May 3, 2017 at 2:49 PM, David Boersma
> <david.boersma at physics.uu.se <mailto:david.boersma at physics.uu.se>> wrote:
>
>     Dear Manh Cam,
>
>     Maybe we can make this a bit more explicit in the docs, but they say
>     that "bash or zsh: source /...path..../geant4.sh" and "[t]csh:
>     source /...path.../geant4.csh". So you need only one of those. Since
>     you are on Ubuntu, which has "bash" as the default shell, you only
>     need to source "geant4.sh", and then proceed as usual.
>
>     David
>
>     Den 01/05/2017 kl. 19:36, skrev Mạnh Cầm Nguyễn:
>
>         Dear Mr. Paulo, Mr. Rachid, and Gate Users,
>
>         Thanks for your quick replies.
>
>         I'm sorry but I don't really know if my environment variables
>         are set
>         and how to check it.
>         I followed the step called: "*update your environment variables
>         file*''
>         in Gate installation guide (
>         http://wiki.opengatecollaboration.org/index.php/Compilation_Instructions_V7.1
>         <http://wiki.opengatecollaboration.org/index.php/Compilation_Instructions_V7.1>
>         ) which is these two commands:
>         *source ~/geant4/geant4.10.01.p03-install/bin/geant4.sh**
>         source ~/geant4/geant4.10.01.p03-install/bin/geant4.csh*
>
>         But you can see in my attached pictures, there was an error with the
>         *geant4.csh* file*
>         bash:
>         /home/manhcam0510/geant4/geant4.10.01.p03-install/bin/geant4.csh:
>         line 27: syntax error near unexpected token `('**
>         bash:
>         /home/manhcam0510/geant4/geant4.10.01.p03-install/bin/geant4.csh:
>         line 27: `set ARGS=($_)'
>         *
>
>         And after I tried 3 steps suggested by Mr. Paulo, the error was
>         still
>         the same as yesterday ("no such file or directory" with the
>         geant4make.sh file) and I couldn't run the example. Can you tell
>         me more
>         clearly how to set my environment variables.
>         Thank you very much
>
>         Manh Cam.
>
>
>
>
>
>
>         _______________________________________________
>         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
>         <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
>     <http://lists.opengatecollaboration.org/mailman/listinfo/gate-users>
>
>


More information about the Gate-users mailing list