You are here

Build Prerequisites

The page lists the prerequisite packages that need to be installed on the different platforms to be able to configure and to build basic ROOT. If more advanced ROOT plugins are required look at the  cmake or ./configure output and add the desired third party packages before configuring again.

Fedora 18, 19 and 20; Scientific Linux 5, 6; CentOS 6, 7

  • git: for /usr/bin/git
  • make: for /usr/bin/make
  • cmake: for /usr/bin/cmake
  • gcc-c++: for for /usr/bin/g++ (ROOT 6 requires g++ 4.8 or clang 3.4; for SLC5/SLC6)
  • gcc: for /usr/bin/gcc
  • binutils: for /usr/bin/ld
  • libX11-devel: for usr/include/X11/Xlib.h and for /usr/lib/
  • libXpm-devel: for /usr/include/X11/xpm.h and for /usr/lib/
  • libXft-devel: for /usr/include/X11/Xft/Xft.h and for /usr/lib/
  • libXext-devel: for /usr/include/X11/extensions/shape.h and for /usr/lib/
  • python:  (ROOT6 requires version >= 2.7)
  • redhat-lsb-core: needed by some tests (tutorials) using lsb_release and some CDash scripts

Most common optional packages:

  • gcc-gfortran: for /usr/bin/gfortran
  • openssl-devel: for /usr/include/openssl/pem.h and /usr/lib/ and /usr/lib/
  • pcre-devel: for /usr/bin/pcre-config
  • mesa-libGL-devel: for /usr/include/GL/gl.h and for /usr/lib[64]/
  • mesa-libGLU-devel: for /usr/include/GL/glu.h and for /usr/lib[64]/
  • glew-devel (may need enabling of the EPEL additional software repository): for /usr/include/GL/glew.h and for /usr/lib[64]/
  • ftgl-devel: for /usr/bin/pkg-config
  • mysql-devel: for /usr/bin/mysql_config
  • fftw-devel: for /usr/include/fftw3.h and for /usr/lib/
  • cfitsio-devel: for /usr/include/fitsio2.h and for /usr/lib/
  • graphviz-devel: for /usr/include/graphviz/gvc.h and for /usr/lib/
  • avahi-compat-libdns_sd-devel: for /usr/include/dns_sd.h and for /usr/lib/
  • libldap-dev: for /usr/include/ldap.h and for /usr/lib/
  • python-devel: for /usr/include/python2.7/Python.h and for /usr/lib/
  • python-numpy-devel: needed for PyMVA
  • libxml2-devel: for /usr/bin/xml2-config
  • gsl-static: for /usr/include/gsl/gsl_version.h and for /usr/lib/libgsl.a. On Fedora 16 use gsl-devel.
  • r-base: needed for R bindings. In addition R packages Rcpp and RInside need to be installed.

Use "yum install package" or use the graphical "Add/Remove Software" program.

Required packages:

sudo yum install git cmake gcc-c++ gcc binutils \
libX11-devel libXpm-devel libXft-devel libXext-devel

Optional packages:

sudo yum install gcc-gfortran openssl-devel pcre-devel \
mesa-libGL-devel mesa-libGLU-devel glew-devel ftgl-devel mysql-devel \
fftw-devel cfitsio-devel graphviz-devel \
avahi-compat-libdns_sd-devel libldap-dev python-devel \
libxml2-devel gsl-static

Ubuntu 10, 12 , 14 and 16

  • git: for /usr/bin/git
  • dpkg-dev for dpkg-architecture (needed by configure to locate system libraries starting from 11)
  • cmake: for /usr/bin/cmake
  • g++: for /usr/bin/g++ (ROOT 6 requires g++ 4.8 or clang 3.4 for how to install g++ 4.8 on Ubuntu 12 see ubuntuhandbook)
  • gcc: for /usr/bin/gcc
  • binutils: for /usr/bin/ld
  • libx11-dev: for usr/include/X11/Xlib.h and for /usr/lib/
  • libxpm-dev: for /usr/include/X11/xpm.h and for /usr/lib/
  • libxft-dev: for /usr/include/X11/Xft/Xft.h and for /usr/lib/
  • libxext-dev: for /usr/include/X11/extensions/shape.h and for /usr/lib/
  • libpng: png library
  • libjpeg: jpeg library
  • python: (ROOT6 requires version >= 2.7)

Most common optional packages:

  • gfortran: for /usr/bin/gfortran
  • openssl-dev or libssl-dev: for /usr/include/openssl/pem.h and /usr/lib/ and /usr/lib/
  • libpcre3-dev: for /usr/bin/pcre-config
  • xlibmesa-glu-dev: for /usr/include/GL/gl.h and for /usr/lib/
  • libglew1.5-dev: for /usr/include/GL/glew.h and for /usr/lib/
  • libftgl-dev: for /usr/bin/pkg-config
  • libmysqlclient-dev: for /usr/bin/mysql_config
  • libfftw3-dev: for /usr/include/fftw3.h and for /usr/lib/
  • libcfitsio-dev: for /usr/include/fitsio2.h and for /usr/lib/
  • graphviz-dev: for /usr/include/graphviz/gvc.h and for /usr/lib/
  • libavahi-compat-libdnssd-dev: for /usr/include/dns_sd.h and for /usr/lib/
  • libldap2-dev: for /usr/include/ldap.h and for /usr/lib/
  • python-dev: for /usr/include/python2.7/Python.h and for /usr/lib/
  • python-numpy-dev: needed for PyMVA
  • libxml2-dev: for /usr/bin/xml2-config
  • libkrb5-dev: for /usr/include/krb5.h and for /usr/lib/
  • libgsl0-dev: for /usr/include/gsl/gsl_version.h and for /usr/lib/libgsl.a
  • libqt4-dev: for /usr/include/qt4/Qt/qglobal.h and for /usr/lib/
  • r-base: needed for R bindings. In addition R packages Rcpp and RInside need to be installed.

Use sudo apt-get install _package_ or use the graphical "Synaptic Package Manager" program.

Required packages:

sudo apt-get install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev \
libxft-dev libxext-dev

Optional packages:

sudo apt-get install gfortran libssl-dev libpcre3-dev \
xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev libcfitsio-dev \
graphviz-dev libavahi-compat-libdnssd-dev \
libldap2-dev python-dev libxml2-dev libkrb5-dev \
libgsl0-dev libqt4-dev

openSUSE 10, 11

  • git: for /usr/bin/git
  • bash: for /bin/bash
  • cmake: for /usr/bin/cmake
  • gcc-c++: for /usr/bin/g++
  • gcc: for /usr/bin/gcc
  • binutils: for /usr/bin/ld
  • xorg-x11-libX11-devel: for /usr/include/X11/Xlib.h and for /usr/lib[64]/
  • xorg-x11-libXpm-devel: for /usr/include/X11/xpm.h and for /usr/lib[64]/
  • xorg-x11-devel: for /usr/include/X11/Xft/Xft.h and for /usr/lib[64]/
  • xorg-x11-proto-devel: for /usr/include/X11/extensions/shape.h
  • xorg-x11-libXext-devel: for /usr/lib[64]/

Most common optional packages:

  • gcc-fortran: for /usr/bin/gfortran
  • libopenssl-devel: for /usr/include/openssl/pem.h and /usr/lib[64]/ and /usr/lib[64]/
  • pcre-devel: for /usr/bin/pcre-config
  • Mesa: for /usr/include/GL/gl.h and for /usr/lib[64]/
  • glew-devel: for /usr/include/GL/glew.h and for /usr/lib[64]/
  • pkg-config: for /usr/bin/pkg-config
  • libmysqlclient-devel: for /usr/bin/mysql_config
  • fftw3-devel: for /usr/include/fftw3.h and for /usr/lib[64]/
  • libcfitsio-devel: for /usr/include/libcfitsio0/fitsio2.h and for /usr/lib[64]/ (not available on openSUSE 10)
  • graphviz-devel: for /usr/include/graphviz/gvc.h and for /usr/lib[64]/
  • avahi-compat-mDNSResponder (on openSUSE 10), libdns_sd (on openSUSE 11): for /usr/lib[64]/
  • avahi-compat-mDNSResponder-devel: for /usr/include/dns_sd.h
  • openldap2-devel: for /usr/include/ldap.h and for /usr/lib[64]/
  • python-devel: for /usr/include/python2.7/Python.h and for /usr/lib[64]/
  • python-numpy-devel: needed for PyMVA
  • libxml2-devel: for /usr/bin/xml2-config
  • krb5-devel: for /usr/include/krb5.h and for /usr/lib[64]/
  • gsl-devel: for /usr/include/gsl/gsl_version.h and for /usr/lib[64]/libgsl.a
  • libqt4-devel: for /usr/include/Qt/qglobal.h and for /usr/lib[64]/
  • r-base: needed for R bindings. In addition R packages Rcpp and RInside need to be installed.

Use sudo zypper install _package_ or use the graphical "Software / Package Manager" in the "YaST2 Control Center" utility.

Required packages:

sudo zypper install git bash cmake gcc-c++ gcc binutils \
xorg-x11-libX11-devel xorg-x11-libXpm-devel xorg-x11-devel \
xorg-x11-proto-devel xorg-x11-libXext-devel

Optional packages:

sudo zypper install gcc-fortran libopenssl-devel \
pcre-devel Mesa glew-devel pkg-config libmysqlclient-devel \
fftw3-devel libcfitsio-devel graphviz-devel \
libdns_sd avahi-compat-mDNSResponder-devel openldap2-devel \
python-devel libxml2-devel krb5-devel gsl-devel libqt4-devel


  • Xcode developer package: for make, g++, gcc, ld, etc. Xcode is found on the MacOS X installation DVD or in the Mac App store. install command line tools through the XCode preferences and/or running in a terminal xcode-select --install
  • Xquartz: for the X11 server (not needed in case the version with Cocoa native backend is build)
  • Other dependencies can be installed from MacPorts

Most common optional packages:

Alternatively ROOT can be installed directly from MacPort with the command:
"sudo port install root"


If you are using Windows make sure you've installed Microsoft Visual C++ (e.g. the no-cost edition) plus CMake. The CMake build will work directly without the need to install cygwin as it was required previously before the adaption of CMake. Note: for the moment native Windows support for ROOT6 versions is not available.

AIX 5, 6 and 7

  • git: for /usr/bin/git
  • bash: for /usr/bin/bash
  • make: for /usr/linux/bin/make
  • pkg-config: for fontconfig, freetype2, xft and xrender installation
  • fontconfig: for /usr/lib/libfontconfig.a
  • fontconfig-devel: for /usr/include/fontconfig
  • freetype2: for /usr/lib/libfreetype.a needed by xft
  • freetype2-devel: for /usr/include/freetype2
  • libxml2: for /usr/lib/libxml2.a
  • libxml2-devel: for /usr/bin/xml2-config
  • xft: for /usr/include/X11/Xft/Xft.h and /usr/lib/libXft.a
  • xrender: for /opt/freeware/include/X11/extensions/Xrender.h and /usr/lib/libXrender.a
  • zlib: for resolving dependencies
  • zlib-devel: for resolving dependencies
  • expat: for resolving dependencies

Use rpm -Uvh _package_ to install the above packages from AIX Toolbox for Linux Applications. Subversion can be obtained from