Build Prerequisites

Before installing FairRoot many other packages are necessary. Some of them can be installed using the package manager of the used Linux distribution, but many others have to be installed from sources. This is necessary because many of these programs can't be installed using the package manager or FairSoft need the programs compiled with special settings.

To make the installation procedure as easy as possible we provide an additional package called FairSoft (sometimes also called "external packages") which takes care of the installation of all needed programs in the right order and with the right compilation flags. In the end all additional software is installed in one directory.

The FairSoft package contains a configuration scripts which checks if all the needed system packages are installed. If some of the system packages are missing the configuration script will stop with a detailed error message. The complete list of needed system packages can be found in the DEPENDENCIES file. This file contain also complete command lines to install the needed packages on the most common Linux systems.

The main prerequisite for the FairSoft installation on Linux or Mac OSX systems is CMake which has either to be installed using the package manager or from the sources which can be downloaded from here.

The instructions how to install FairSoft can be found here.

Build Prerequisites on Mac OS X

The easiest way to come to a running environment on Mac OSX is to follow the instructions given here. For all of the following command you need a Terminal. If you don't know where to find it, you can use Spotlight. Simply type "Terminal" in the Spotlight search window and click on the Terminal application. This will open the Terminal application.

  • Install Xcode from App Store
  • Get the system compiler and most of the development tools by installing Apple's command line tools. Please type in the Terminal session the following command.
    • sudo xcode-select --install

Depending on the version of Apple OS X system, one needs additional packages defined below.

Mac OS X 10.8 and earlier

Mac OS X 10.9 (Mavericks) and 10.10 (Yosemite) * XQuartz version 2.7.5 and later * gfortran version 4.9 only

Mac OS X 10.11 (El Capitan) and newer

In El Capitan other packages are needed. The easiest way is to install them with brew:

ruby -e "$(curl -fsSL"


brew install Caskroom/cask/xquartz
 brew install gcc cmake autoconf automake libtool openssl pkg-config



 export OPENSSL_ROOT_DIR=`brew --prefix openssl`


ln -s /usr/local/opt/openssl/include/openssl /usr/include

El Capitan OS includes a System Integrity protection that prevents users to write in the /usr folder. If you have problems with this feature to install the packages, disable it rebooting the computer pressind CMD+R and open a terminal to type:

csrutil disable

If your need to switch this of in a virtual machine please follow the instructions at

Then, reboot computer.

When you successfully reached this point you have all needed prerequisites to be able to install FairSoft.