Installation Guide V7.2

From Wiki OpenGATE
(Redirected from InstallationGuideV7.2)
Jump to: navigation, search

General Information

The GATE mailing list

You are encouraged to participate in the dialog and post your suggestion or even implementation on the Gate-users mailing list, the GATE mailing list for users. You can subscribe to the Gate-users mailing list, by registering to the GATE web site or directly using this link

If you have a question, it is very likely that it has been asked, answered, and stored in the archives. Please use the search engine to see if your question has already been answered before sending a mail to the Gate-users list.

GATE project on GitHub

GATE project is now publicly available on GitHub. So, any people identified as a GATE contributor on GitHub can

  • Report bugs by creating, assigning and closing an issue
  • Add/modify the source code or fix bugs
    • Start by copying the GATE public repository from GitHub: git clone
    • Create a specific branch on your repository copy and commit your modifications in that branch
    • Create your own copy (fork) of GATE public repository inside your GitHub account so as to be able to push your branch onto this copy
    • Once your code is ok,
  1. Create a pull-request from your Gate repository to the official Gate repository
  2. Provide an example that tests your new feature
  3. If you implemented a new feature, have the associated documentation ready
  4. Inform these three people from the collaboration (S. Jan, D.Sarrut and A. Dubois) who will then get in touch with you to integrate your changes in the official repository (once merged, pull-requests and corresponding source code changes can be visualized using GitWeb).

Installing GATE on Linux

This section describes the installation procedure of GATE. This includes three steps:

  • Install Geant4 ;
  • Install ROOT (most of the time);
  • Install GATE itself.

This section starts with a brief overview of the recommended configurations, followed by a short introduction to the installation of Geant4, and then explains the installation of GATE itself on Linux.

It should be highlighted that features depending on external components (libraries or packages) may only be activated if the corresponding component is installed. It is the user's responsibility to check that these components are installed before activating a feature. Except for Geant4, which is closely related to GATE, the user should refer to the Installation Guide of the external components.

In addition, you should also install any Geant4 helper you wish to use, especially OpenGL if required, before installing Geant4 itself. You can either download the source codes and compile the libraries or download precompiled packages which are available for a number of platform-compiler. If you choose to or have to compile the packages, you will need:

  • a C++ compiler
  • the GNU version of make
  • CMAKE tool

The ROOT data analysis package may also be needed for post-processing or for using the GATE online plotter (enabling the visualization of various simulation parameters and results in real time). ROOT is available for many platforms and a variety of precompiled packages can be found on the ROOT homepage.

The LMF and ecat7 packages are also provided on the GATE website. They offer the possibility to have different output formats for your simulations.

Package Requirements

Compiling software usually requires certain system libraries and compilation tools. Furthermore, GATE and Geant4 have various package requirements which have to be met BEFORE installing or compiling. Currently lists have been created for Ubuntu 10.04, Ubuntu 11.x, Fedora 14 and Scientifix Linux 6. Visit the Package Requirements page for detailed package lists.

Installing with MacPorts on OS X

GATE can be installed on Mac OS X by following the previous installation instruction on Linux. An alternative way is to install Gate via MacPorts ( with

   sudo port install gate

Apart from the `Gate` command this also installs a standalone app:


(Thanks Mojca Miklavec for this contribution).

GATE compilation and installation

For the 7.2 release, the recommended configuration is the following:

Note that the 7.2 release remains backward compatible with Geant4 10.1 patch 02 (available in

  • The CLHEP embedded from Geant4 is available (flag OFF by default). Users can also use the external CLHEP (version
  • gcc 4.8 to 5.2
  • CMake minimal version: 3.3 (with SSL support)
  • CUDA tools to use the GPU modules: see for details

GATE compilation and installation instruction are performed with CMake. See the Compilation instructions

Validating Installation

If you are able to run Gate after installation by typing


it is an indication that your installation was successful.

However, before you do any research, it is highly recommended that you validate your installation.

See Validating Installation for benchmarks and further information.

Other Web Sites

G4 Agostinelli S et al 2003 GEANT4 - a simulation toolkit Institute Nucl. Instr. Meth. A506 250-303 GEANT4 website:

CLHEP - A Class Library for High Energy Physics:

OGL OpenGL Homepage:

DAWN release: tanaka/}{ tanaka/}

ROOT Brun R, Rademakers F 1997 ROOT - An object oriented data analysis framework Institute Nucl. Instr. Meth. A389 81-86 ROOT website:

libxml website: