The following minimal set of software must be present to build Geant4:
Geant4 Toolkit Source Code.
CMake 2.6.4 or higher.
We suggest version 2.8.0 or higher as this provides some additional helpful features, but it is not required.
C++ Compiler:
Linux: GCC(g++).
Mac OS X: GCC(g++) (Xcode 3 or 4).
Windows: Visual Studio 2009 and 2010, either Express or Higher Editions.
Linux/Mac only: Make
On Linux, it is strongly recommended that you use CMake as provided through the package management system of your distribution, unless this does not meet the minimum version requirement of CMake 2.6.4. In that case, we recommend you install it using the Linux binary installer for the latest version of CMake, available with instructions from the Kitware download site.
On Mac and Windows, CMake is not installed by default, so we recommend that you install it using the Darwin64 dmg (Mac) or Win32 exe (Windows) installerpackages supplied by the Kitware download site.
On Linux and Mac, it is strongly recommended to use the g++ compiler supplied by the package management system of your distribution (Linux), or supplied with Xcode (Mac).
As of version 9.5.0, a minimal version of the CLHEP library is supplied with the Geant4 sources. Geant4 will build and use this internal version of the CLHEP library by default, and so having an external install of CLHEP is no longer a prerequisite.
However, Geant4 can still be configured to use an existing install of CLHEP if required by your use case. This configuration is done by passing extra options to CMake, and if your require this feature you should consult Section 2.3.