<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello Gate users.<div><br></div><div>I've now managed to install Gate v6.2 with great help from Andrew Green. Just wanted to give a short summary on how my problem got solved in case someone browse the user forum with the same problem as I.</div><div><br></div><div>I didn't knew what to do with the <span style="font-size: 12px; ">CLHEP_CONFIG_EXECUTABLE, </span><span style="font-size: 12px; ">CLHEP_INCLUDE_DIR and </span><span style="font-size: 12px; ">CLHEP_LIBRARY </span></div><div><span style="font-size: 12px; ">when installing Geant. I had tried setting the environment but got error messages. I thought I made something wrong when defining the environment variables. </span><span style="font-size: 12px; ">With the correct variables I got the error message:</span></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><span style="font-size: medium; ">BUILD_STATIC_LIBS /applications/2.1.1.0/CLHEP/bin/clhep-config: line 14: [: -eq: unary operator expected </span></div><div style="font-size: 12px; margin: 0px; "><span style="font-size: medium; "><br></span></div><div style="margin: 0px; ">Andrew pointed out that this was due to CLHEP not installed properly. I tried to recompile CLHEP but got the same error. Since Geant and Gate should be compiled with gcc 4.2,</div><div style="margin: 0px; "><br></div><div style="margin: 0px; "><a href="http://permalink.gmane.org/gmane.comp.science.opengate.user/2458">http://permalink.gmane.org/gmane.comp.science.opengate.user/2458</a></div><div style="margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; ">I also tried to compile CLHEP with gcc 4.2 without any success. I then "cheated" and used a versions of CLHEP 2.1.0.1 compiled on OS X 10.6 and this worked fine together with Geant4.9.p01 and Gate v6.2 (using gcc 4.2). Since I need ascii output I also made a change in the Gate GateConfiguration.h.in <span style="font-family: arial, sans-serif; background-color: rgb(255, 255, 255); ">file</span> described here</div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><a href="http://article.gmane.org/gmane.comp.science.opengate.user/2602/match=sneha+nidhi">http://article.gmane.org/gmane.comp.science.opengate.user/2602/match=sneha+nidhi</a></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; ">I didn't try to figure out why CLHEP 2.1.1.0 wouldn't compile properly. However, for future problems Andrew gave the advice to use home-brew to install compilers for OS X found here:</div><br><a href="http://mxcl.github.io/homebrew/">http://mxcl.github.io/homebrew/</a><br><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; ">Maybe this information could be helpful for someone else.</div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; ">Regards </div><div style="font-size: 12px; margin: 0px; ">Jenny</div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div><div style="font-size: 12px; margin: 0px; "><br></div></div><div><br></div><div><br></div><br><div><div>3 maj 2013 kl. 15:58 skrev Andrew Green <<a href="mailto:Andrew.Green@hep.manchester.ac.uk">Andrew.Green@hep.manchester.ac.uk</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Jenny,<br><br>I think the problem is that you haven't set the CLHEP_... variables correctly.<br><br>CLHEP_CONFIG_EXECUTABLE should point to an executable script created during the installation of CLHEP, usually this is /Applications/2.1.1.0/CLHEP/bin/clhep-config<br><br>One thing to make sure of is that this script is actually executable! Something like 'chmod a+x /Applications/2.1.1.0/CLHEP/bin/clhep-config' would make sure.<br><br>CLHEP_INCLUDE_DIR should point to the directory where CLHEP's header files are. This will usually be something like /Applications/2.1.1.0/CLHEP/include/<br><br>I think the CLHEP_LIBRARY variable should point to the library compiled when you installed CLHEP. This is probably something like<br>/Applications/2.1.1.0/CLHEP/lib/libCLHEP-2.1.1.0.(a for static, dylib for dynamic)<br><br>I suggest you tell it to use the dylib.<br><br>Once you set the CLHEP_CONFIG_EXECUTABLE variable right, it *should* sort the other variables out for you, so try that first.<br><br>About the Geant4 version, I'm not sure if the difference between 9.5.p01 and 9.5.p02 is something that will upset Gate, but I think the official answer is something along the lines "may produce invalid results". Reading the p02 release notes, they did something with the internal CLHEP modules, so I suggest you use p01 if you can.<br><br>Hope this helps,<br>Andrew<br><br><br>On 3 May 2013, at 14:29, <<a href="mailto:gate-users-request@lists.opengatecollaboration.org">gate-users-request@lists.opengatecollaboration.org</a>><br> wrote:<br><br><blockquote type="cite">Send Gate-users mailing list submissions to<br><span class="Apple-tab-span" style="white-space:pre"> </span><a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><span class="Apple-tab-span" style="white-space:pre"> </span>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br>or, via email, send a message with subject or body 'help' to<br><span class="Apple-tab-span" style="white-space:pre"> </span>gate-users-request@lists.opengatecollaboration.org<br><br>You can reach the person managing the list at<br><span class="Apple-tab-span" style="white-space:pre"> </span>gate-users-owner@lists.opengatecollaboration.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Gate-users digest..."<br><br><br>Today's Topics:<br><br> 1. Installing Gate v6.2 and Geant4 on OSX 10.8.3,<span class="Apple-tab-span" style="white-space:pre"> </span>problems with<br> CLHEP (Jenny Nilsson)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 3 May 2013 13:31:55 +0000<br>From: Jenny Nilsson <jenny.nilsson@radfys.gu.se><br>To: "gate-users@lists.opengatecollaboration.org"<br><span class="Apple-tab-span" style="white-space:pre"> </span><gate-users@lists.opengatecollaboration.org><br>Subject: [Gate-users] Installing Gate v6.2 and Geant4 on OSX 10.8.3,<br><span class="Apple-tab-span" style="white-space:pre"> </span>problems with CLHEP<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre"> </span><6F412DC8CE42274EAFE20336B015C64701131C9A94@GU-MBX06.ad.gumail.local><br>Content-Type: text/plain; charset="windows-1252"<br><br>Hello all.<br>I?ve been trying to install Geant4.9.5.p02 and using external CLHEP on Mac OS X 10.8.3, Mountain Lion. There seems to be some problems with Cmake finding the CLHEP installation.<br><br>I?ve installed CLHEP 2.1.1.0, which seems to have worked fine. CLHEP is in directory /Applications/2.1.1.0 and the variable paths are updated<br><br>export PATH=$Applications/2.1.1.0/CLHEP/bin<br>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Applications/2.1.1.0/CLHEP/lib<br><br>When installing Geant4 using ccmake I get the following for CLHEP:<br><br>CLHEP_CONFIG_EXECUTABLE /Applications/2.1.1.0/CLHEP<br>CLHEP_INCLUDE_DIR /Applications/2.1.1.0<br>CLHEP_LIBRARY /Applications/2.1.1.0/lib<br><br>And when configuring I get the following message:<br><br>CMake Error at cmake/Modules/FindCLHEP.cmake:179 (file):<br> file Internal CMake error when trying to open file:<br> /Applications/2.1.1.0/CLHEP/Units/defs.h for reading.<br>Call Stack (most recent call first):<br> cmake/Modules/Geant4OptionalComponents.cmake:41 (find_package)<br> CMakeLists.txt:79 (include)<br><br>CMake Error at /Applications/CMake<br>2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmak<br>e:97 (message):<br> Could NOT find CLHEP:<br><br> Incompatible versions, (found) < 2.1.0.1(required)<br><br> (missing: CLHEP_VERSION_COMPATIBLE) (Required is at least version<br>"2.1.0.1")<br><br><br>Any suggestion on what has gone wrong?<br>Does it matter, with respect to Gate 6.2 if I use Geant4.9.5p01 or Geant4.9.5.p02<br><br>Also, the manual mention CLHEP_ROOT_DIR, but I can?t seem to find this when using ccmake. Is this something of concern?<br>Regards,<br>Jenny<br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20130503/981273f0/attachment.html><br><br>------------------------------<br><br>_______________________________________________<br>Gate-users mailing list<br>Gate-users@lists.opengatecollaboration.org<br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br><br>End of Gate-users Digest, Vol 84, Issue 2<br>*****************************************<br></blockquote><br>_______________________________________________<br>Gate-users mailing list<br><a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>http://lists.opengatecollaboration.org/mailman/listinfo/gate-users<br></blockquote></div><br></body></html>