geant4 and/or geant4.10.0

Mojca Miklavec mojca at macports.org
Fri Aug 22 23:23:08 PDT 2014


On Sat, Aug 23, 2014 at 4:16 AM, John Hanly wrote:
> Has anyone installed either the geant4 or geant4.10.0 ports?  If so, how do
> you run it after installing?

Geant4: do something like
    source /opt/local/libexec/Geant4/Geant4.10.0/geant4.sh

(You can also run "sudo port select geant4 geant4.10.0" and then just
"source geant4.sh".)

You need to source that file in every newly opened terminal before
running any Geant4 simulation (and often before compiling one, even
though CMake usually finds the module).

But of course there is no such thing as "running Geant4". You can
compile source code and run programs compiled against Geant4 ... You
can run something like "ccmake
/opt/local/share/Geant4/Geant4-10.0.2/examples/basic/B3/" to configure
the examples.


Gate: the easiest way is to simply launch Gate.app (start it from
launchpad, click on /Applications/MacPorts/Gate.app or run "open -a
Gate.app"). You can also run "Gate" from the terminal (you can check
the contents of /opt/local/bin/Gate), but that one is not as
"comfortable" to use as the Qt app. Or run "Gate --qt".

You could install "sudo port install gate +geant4100" if you want Gate
compiled against Geant4 10.0, but I'm not yet sure if that works
reliably.

Mojca


More information about the macports-users mailing list