<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.2.2">
</HEAD>
<BODY>
Hi,<BR>
<BR>
unfortunately I can not reproduce your problem.<BR>
Could you be more specific?<BR>
E.g. contents of your environmental variables (type printenv in a terminal and post the output).<BR>
<BR>
Generally GATE requires some environmental variables. It does not make a difference where these are set.<BR>
You could put them in .bashrc, then they will be set automatically when you open a terminal.<BR>
Alternatively, especially when using multiple geant4/Gate releases, you could create a script which sets the required varibles as soon as you source the script.<BR>
Such a script may be called envGate.sh.<BR>
You should create it yourself.<BR>
The file should contain:<BR>
<BR>
<BR>
source <PATHTOROOT>/bin/thisroot.sh
source<PATHTOGEANT4>/bin/geant4.sh
export PATH=$PATH:<PATHTOGATE>/bin
export GC_GATE_EXE_DIR=<PATHTOGATE>/bin
export GC_DOT_GATE_DIR=./<BR>
<BR>
Please replace <PATHTOGATE>, <PATHTOGEANT4> and <PATHTOROOT> with the correct absolute file path to your installation directories.
<BR>
<BR>
Cheers,<BR>
Hermann<BR>
<BR>
On Wed, 2015-01-21 at 13:29 +0000, André Miguel Monteiro wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Dear Hermann, Soman and all Gate users,<BR>
    <BR>
    <BR>
    <BR>
    I am having the same problem as you Soman.<BR>
    <BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Compiling gjs.cc...
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Compiling GateMacfileParser.cc...
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    ./src/GateMacfileParser.cc: In constructor ‘GateMacfileParser::GateMacfileParser(G4String, G4int, G4int, G4String*)’:
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    ./src/GateMacfileParser.cc:41:26: error: ‘getpid’ was not declared in this scope
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
      srand(time(NULL)*getpid());
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
                              ^
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    make: *** [tmp/GateMacfileParser.o] Error 1
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
    As you did I add the variables to my ~/.bashrc file:<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    export GC_DOT_GATE_DIR=/home/andre/workdir/
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    export GC_GATE_EXE_DIR=/home/andre/programs/Gate/opt/simulation/gate.7.0-install/bin<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    I set these paths, because in other machine I have Gate v.6.1 installed with cluster tools that point GC_DOT_GATE_DIR to a work directory and GC_GATE_EXE_DIR where is present the Gate executable.<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Does anyone know how to solve this problem?<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Thank you.<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Cheers,<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    André<BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
    <FONT SIZE="2">--------------------------------</FONT><BR>
    <FONT SIZE="2">MSc Student in Biomedical and Biophysics Engineering at Faculty of Sciences of the University of Lisbon</FONT><BR>
    <BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Instituteof Biophysics and Biomedical Engineering</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Faculty of Sciences, Universityof Lisbon</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Campo Grande</FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">1749-016 Lisbon</FONT></FONT><BR>
    <BR>
    <FONT SIZE="2">Room Office: 1.02</FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Extension: 20509 </FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Email: ammonteiro@fc.ul.pt</FONT></FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2"><FONT COLOR="#000000">LinkedIn Profile: <A HREF="http://linkedin.com/in/andremmonteiro">http://linkedin.com/in/andremmonteiro</A></FONT></FONT><BR>
    <FONT SIZE="2"><FONT COLOR="#000000">Website: <A HREF="http://www.ibeb.fc.ul.pt/">http://www.ibeb.fc.ul.pt/</A></FONT></FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    
<HR ALIGN="center">

</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <B><FONT COLOR="#000000">From:</FONT></B><FONT COLOR="#000000"> gate-users-bounces@lists.opengatecollaboration.org <gate-users-bounces@lists.opengatecollaboration.org> on behalf of S. Saghamanesh <s.saghamanesh@yahoo.com></FONT><BR>
    <B><FONT COLOR="#000000">Sent:</FONT></B><FONT COLOR="#000000"> Saturday, December 20, 2014 2:02 PM</FONT><BR>
    <B><FONT COLOR="#000000">To:</FONT></B><FONT COLOR="#000000"> Hermann Fuchs; gate-users@lists.opengatecollaboration.org</FONT><BR>
    <B><FONT COLOR="#000000">Subject:</FONT></B><FONT COLOR="#000000"> Re: [Gate-users] Problem with job splitter installation</FONT> 
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
     
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">Dear Hermann,</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">Thanks for your note. My problem is that my system can't find the "env_gate.sh". I even don't have a cmake file in the "job splitter" directory to compile. </FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">Based on the directions in Gate manual, I should add two environment variables in my ".bashrc" file as below, am I right?</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">export GC_DOT_GATE_DIR=/somedir/  >>  (I set it to </FONT>/home/soman/Gate/gate_v7/cluster_tools/jobsplitter)
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">export GC_GATE_EXE_DIR=/somedir/bin/Linux-g++/   >> (I set it to </FONT>/home/soman/Gate/gate_v7/cluster_tools/jobsplitter)
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">However, when I go into above path in a terminal and write source env_gate.sh, my system can't find env_gate.sh. I don't know what's the problem. Thanks for any idea of yours and also ideas of other users, </FONT>if any, on this.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">- Soman</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <FONT SIZE="2">On Tuesday, December 16, 2014 2:25 PM, Hermann Fuchs <hermann.fuchs@meduniwien.ac.at> wrote:</FONT><BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Hi,<BR>
    <BR>
    at our place the following procedure worked on Scientific Linux 6 and Ubuntu 14.04 LTS.<BR>
    <BR>
    go to /opt/simulation/gate6_1/cluster_tools/jobsplitter 
<PRE>
cd /opt/simulation/gate6_1/cluster_tools/jobsplitter
</PRE>
    make sure Gate paths are set 
<PRE>
source /opt/simulation/gate6_1/env_gate.sh
</PRE>
    compile 
<PRE>
make
</PRE>
    Copy the library to the correct place 
<PRE>
cp /opt/simulation/gate6_1/cluster_tools/jobsplitter/tmp/Linux-g++/gjs/libgjs.so /opt/simulation/gate6_1/cluster_tools/jobsplitter/bin/Linux-g++
</PRE>
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/simulation/gate6_1/cluster_tools/jobsplitter/tmp/Linux-g++/gjs<BR>
    <BR>
    Cheers,<BR>
    Hermann<BR>
    <BR>
    On Wed, 2014-12-10 at 14:08 +0000, S. Saghamanesh wrote: <BR>
    <BLOCKQUOTE TYPE=CITE>
        Hi, 
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        <BR>
        <BR>
        <BR>
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        I get this error when I try to make job splitter in its directory:<BR>
        <BR>
        <BR>
        Compiling GateMacfileParser.cc...<BR>
        ./src/GateMacfileParser.cc: In constructor ‘GateMacfileParser::GateMacfileParser(G4String, G4int, G4int, G4String*)’:<BR>
        ./src/GateMacfileParser.cc:41:26: error: ‘getpid’ was not declared in this scope<BR>
        make: *** [tmp/GateMacfileParser.o] Error 1<BR>
        <BR>
        <BR>
        <BR>
        What is it about? Does anybody know what's the procedure of installing job splitter?<BR>
        <BR>
        <BR>
        Thanks 
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        - Soman
    </BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BLOCKQUOTE TYPE=CITE>
        <BR>
        <BR>
        <BR>
        <BR>
<PRE>
_______________________________________________
Gate-users mailing list
<A HREF="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</A>
<A HREF="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</A>
</PRE>
    </BLOCKQUOTE>
    <BR>
    <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- 
<PRE>
-------------
DI Hermann Fuchs
Christian Doppler Laboratory for Medical Radiation Research for Radiation Oncology
Department of Radiation Oncology
Medical University Vienna
Währinger Gürtel 18-20
A-1090 Wien

Tel.  + 43 / 1 / 40 400 72710
Mail. hermann.fuchs@meduniwien.ac.at
</PRE>
<BR>
</TD>
</TR>
</TABLE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    _______________________________________________<BR>
    Gate-users mailing list<BR>
    <A HREF="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</A><BR>
    <A HREF="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</A><BR>
    <BR>
    <BR>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- 
<PRE>
-------------
DI Hermann Fuchs
Christian Doppler Laboratory for Medical Radiation Research for Radiation Oncology
Department of Radiation Oncology
Medical University Vienna
Währinger Gürtel 18-20
A-1090 Wien

Tel.  + 43 / 1 / 40 400 72710
Mail. hermann.fuchs@meduniwien.ac.at
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>