[Gate-users] gate7.1 installation on mac OSX 10.10
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Sun Sep 20 19:50:52 CEST 2015
On Sun, Sep 20, 2015 at 7:15 PM, pzw <pzw at ns.ph.liv.ac.uk> wrote:
> Dear GATE Experts,
>
> I’m trying to install gate v7.1 on my macbook pro running macOSX10.10. I
> managed to successfully install this software before, however, I recently
> needed to make changes to activate some optional settings. Therefore, I
> recompiled gate with fag changes from OFF to ON for a few settings. However,
> the compilation failed. I then tried to restore to the original basic Gate
> installation using the commands shown below:
>
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1-install
> -DGATE_DOWNLOAD_BENCHMARKS_DATA=ON /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1-install
> -DGATE_DOWNLOAD_EXAMPLES_DATA=ON /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1-install
> -DGATE_USE_ECAT7=OFF /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1 -DGATE_USE_LMF=OFF
> /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1 -DGATE_USE_OPTICAL=ON
> /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1 -DGATE_USE_GPU=OFF
> /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1 -DGATE_USE_GEANT4_UIVIS=ON
> /usr/local/gate_v7.1
> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1
> -DGEANT4_USE_SYSTEM_CLHEP=OFF /usr/local/gate_v7.1
>
>> make -j4
>> make install
>
>
> However, the installation keeps failing at CMAKE stage. Can someone please
> let me know what it is that I’m not doing correctly? I desperately need to
> get this problem sorted out.
>
> Your help will be very much appreciated.
We won't be able to help you unless you provide the output / error
reports, but I don't quite understand how exactly you call cmake. I
would suggest you to try running
ccmake ../path/to/sources
and then set everything there. You can call cmake directly, but then
you only need to call it once, not zillion times with different
options each time. The above sequence of commands seems a bit weird.
For example you could try to call it like this:
cd /usr/local/gate_v7.1-build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/gate_v7.1-install \
-DGATE_DOWNLOAD_BENCHMARKS_DATA=ON \
-DGATE_DOWNLOAD_EXAMPLES_DATA=ON \
-DGATE_USE_ECAT7=OFF \
-DGATE_USE_LMF=OFF \
-DGATE_USE_OPTICAL=ON \
-DGATE_USE_GPU=OFF \
-DGATE_USE_GEANT4_UIVIS=ON \
-DGEANT4_USE_SYSTEM_CLHEP=OFF \
/usr/local/gate_v7.1
make -j4
make install
But you need to make sure to compile Geant4 with the same setting of
GEANT4_USE_SYSTEM_CLHEP=OFF and you need to make sure that Gate can
find both ROOT and Geant4.
My suggestion would be to call "ccmake" instead of cmake with the same
settings and then visually inspect whether everything is as expected.
Mojca
More information about the Gate-users
mailing list