[Gate-users] Install GATE in Mac os Mavericks

pmcorreia at ua.pt pmcorreia at ua.pt
Wed Mar 12 12:58:05 CET 2014


Dear Mojca and Aguwa

I managed to install Gate as suggested by Mojca. 

Actually, is really simple once we have Geant4.9.6 (plus CLHEP and ROOT) installed via macports.
     - sudo port install root
     - sudo port install geant4.9.6 (will install clhep as well)


Only as a future reference, I did as described in macports web page:

i) in the file /opt/local/etc/macports/sources.conf, I added the following line:
      - file:///Users/pedro/GATE/gate_ports       
ii) I created the directory where the port files written by Mojca will be added:
      - mkdir /Users/pedro/GATE/gate_ports  
      - cd /Users/pedro/GATE/gate_ports
iii) In this directory I wrote the following command:
      - svn co https://svn.macports.org/repository/macports/users/mojca/ports/science/gate .
     this creates a directory called "gate", with a directory called "files", and a file called "Portfile", which will be used to install the port
iv)   go to the directory  /Users/pedro/GATE/gate_ports, and then type the command
      -  portindex
 If you are doing this correctly, you should see an output like:

Creating port index in /Users/pedro/GATE/gate_ports

Total number of ports parsed:	1
Ports successfully parsed:	1
Ports failed:			0
Up-to-date ports skipped:	0

v) finally, you can search the port called "gate", by typing
      - port search gate
getting the following output

(........)

gate @6.99-git-20140228-30625f7f3c (science)
    GATE description

(........)

vi) The installation is now made with the usual method of Macports:
        - sudo port install gate   

vii) When the installation is finished, you can start Gate exactly the same way as we do in Linux
        - Gate
        - Gate < exemplo.mac        
etc.

After doing this, I have only an issue when I run a macro example in Gate.
I have a macro, which runs well in Gate installed by source in Scientific Linux and also in VGate, but when I run it in the Gate installed with the above method, I get this error message:

WARNING: No current scene handler.
WARNING: No current scene handler.
ERROR: G4VisCommandsViewerUpdate::SetNewValue: no current viewer.

and the program stops after this. Is this related with some installation option? Or is missing some visualization software in my computer.

Thank you for your help Mojca!


________________________________________
De: gate-users-bounces at lists.opengatecollaboration.org <gate-users-bounces at lists.opengatecollaboration.org> em nome de Mojca Miklavec <mojca.miklavec.lists at gmail.com>
Enviado: terça-feira, 11 de Março de 2014 17:28
Para: Karr Aguwa
Cc: gate-users
Assunto: Re: [Gate-users] Install GATE in Mac os Mavericks

On Tue, Mar 11, 2014 at 6:00 PM, Karr Aguwa wrote:
> Thanks for your fast response, but I was using the CLHEP 2.1.1.0 which was
> the highest version recommended by OpenGate for GATE 6.2

Gate 6.2 has been released in September 2012. That was the last
version of CLHEP against which Gate has been tested by then. But you
can probably safely use the latest version (either manually built or
the one from MacPorts, whatever is easier for you).

> I haven't tried the later versions yet. I will do that tonight.

> And what do you mean by
> "Mavericks buildbot for MacPorts"?

All software in MacPorts is automatically built on four servers
running Mac OS X 10.6-10.9. If software fails to build (which is not
uncommon, in particular when new OS versions come out), package
maintainers are notified. If there was some major incompatibility with
10.9 in CLHEP, the build would have failed on the server already. (But
please note that I'm talking about new versions of CLHEP. Version
2.1.1.0 is known to have issues with clang.)

> Do I need this port in-order to build it
> on Mavericks?

No. (Buildbot is not a port. See http://buildbot.net/ or
https://build.macports.org/builders/buildports-mavericks-x86_64 in
case you want to know more, but you don't need to worry about it.)

Mojca
_______________________________________________
Gate-users mailing list
Gate-users at lists.opengatecollaboration.org
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users


More information about the Gate-users mailing list