<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hello Aida,</p>
<p><br>
</p>
<p>First: we recommend that you should always try to use the newest stable release, which is currently 8.1. Same holds in principle for ROOT. If you insist on ROOT 5 and you compile it yourself from source, then please take the latest one (currently 5.34.36),
check <a href="https://root.cern.ch/releases" class="OWAAutoLink" id="LPlnk537347" previewremoved="true">https://root.cern.ch/releases</a>. Note that with gcc 6 and newer, ROOT 5 no longer compiles (at least it didn't when I tried). With ROOT 6 you are a bit
more future proof. <img class="EmojiInsert" id="OWAEmoji49309" alt="😊" style="vertical-align: bottom;" src="cid:9a27b829-4f17-4371-b7ce-39cfc8a9b1be"></p>
<p><br>
</p>
<p>Second: those build errors can arise for several reasons.</p>
<p>* The simplest would be that after installing ROOT (maybe somewhere in your home directory) you forgot to run "source /path/to/ROOT/bin/thisroot.sh" in the shell where you started building Gate.
<br>
</p>
<p>* Another possibility is that you specified some options in the configuring step of your ROOT build and accidentally disabled something that is apparently needed by Gate.</p>
<p>* Yet another possibility is that you have several ROOT installations on your system, and in your ~/.bashrc you have some lines which are setting your environment to use one of those installs, not the one you want. (Using .bashrc in this way is really bad,
and this sketched problem is one of the reasons.)</p>
<p><br>
</p>
<p>Could you check if any of these potential issues is relevant for your case? If not, then I (or someone else) will have to generate some more hypotheses.
<img class="EmojiInsert" id="OWAEmoji988793" alt="😊" style="vertical-align: bottom;" src="cid:9a27b829-4f17-4371-b7ce-39cfc8a9b1be"></p>
<p><br>
</p>
<p>HTH,</p>
<p>David<br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Gate-users <gate-users-bounces@lists.opengatecollaboration.org> im Auftrag von Aida Pena <aidapenagil@gmail.com><br>
<b>Gesendet:</b> Dienstag, 23. Oktober 2018 10:59:51<br>
<b>An:</b> gate-users@lists.opengatecollaboration.org<br>
<b>Betreff:</b> [Gate-users] Problems installing Gate v8.0</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Hello everyone!</div>
<div><br>
</div>
<div>I am trying to install Gate v8.0 in Ubuntu 16.04, but I get this error when I run make:</div>
<div><i>~/gate_v8.0-build$ make -j8</i></div>
<div><i>[ 2%] Built target itkzlib<br>
[ 6%] Built target MetaIO<br>
[ 6%] Linking CXX executable Gate<br>
/usr/bin/ld: cannot find -lGraf3d<br>
collect2: error: ld returned 1 exit status<br>
CMakeFiles/Gate.dir/build.make:17220: recipe for target 'Gate' failed<br>
make[2]: *** [Gate] Error 1<br>
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed<br>
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2<br>
Makefile:138: recipe for target 'all' failed<br>
make: *** [all] Error 2</i><br>
<br>
</div>
<div>I am using Geant4.10.03.p03 and Root_v5.34.30 installed by compiling the source code.</div>
<div>At first I got an error with the file TVector2.h (It cannot be found), and it was solved obtaining the file from another version of Gate, as in this thread:
<a href="http://lists.opengatecollaboration.org/pipermail/gate-users/2016-December/009316.html">
http://lists.opengatecollaboration.org/pipermail/gate-users/2016-December/009316.html<br>
</a></div>
<div>But then this other error appeared:</div>
<div>
<pre><i><span style="font-family:arial,helvetica,sans-serif">[100%] Linking CXX executable Gate
> > > /usr/bin/ld: cannot find -lGraf3d
> > > /usr/bin/ld: cannot find -lPostscript
> > > /usr/bin/ld: cannot find -lPhysics
> > > collect2: error: ld returned 1 exit status
> > > make[2]: *** [Gate] Error 1
> > > make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
></span><span style="font-family:arial,helvetica,sans-serif"> > > make: *** [all] Error 2<br><br></span></i></pre>
<pre><span style="font-family:arial,helvetica,sans-serif">I tried installing the libssl-dev package and also all this other libraries that were suggested in other threads.<br>(<i> libroot-graf2d-postscript-dev, libroot-net-dev, libroot-math-physics-dev, libroot-gui-dev, libroot-hist-dev and libroot-io-dev</i>).<br>And from this point the only problem that remains is with -lGraf3d, as in the output shown at the beginning.<br>Could anyone help me in figuring out the error?<br></span></pre>
<pre><span style="font-family:arial,helvetica,sans-serif">Best Regards,<br></span></pre>
<pre><span style="font-family:arial,helvetica,sans-serif">Aida<br></span></pre>
<pre><span style="font-family:arial,helvetica,sans-serif"><br><br><br><i></i></span></pre>
<pre><i><br></i></pre>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>