Installing ROOT on your laptop

From IIHE Wiki
Revision as of 13:55, 17 March 2016 by Admin (talk | contribs) (Created page with "1. Look at the pre-requisites on the [https://root.cern.ch/build-prerequisites CERN website] :For '''ubuntu''', you need to do: <pre>sudo apt-get install git dpkg-dev make g++...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

1. Look at the pre-requisites on the CERN website

For ubuntu, you need to do:
sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev 
and I strongly suggest installing the optionnal packages too:
sudo apt-get install gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev \
libmysqlclient-dev libfftw3-dev cfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python-dev libxml2-dev libkrb5-dev \
libgsl0-dev libqt4-dev



2. Download the latest release from the CERN download page

a. Click on the latest release
b. Under Binary distributions (ie already compiled for a specific platform), download the tar.gz file appropriate to your platform
  • To get your ubuntu version, type cat /etc/lsb-release in a terminal
  • To get you gcc version, type gcc --version. Your release number need to be the mentioned one (whatever the minor version is, ie like 4.8[.1]).



3. Extract the compressed tarball:

tar xzf root_v6.06.02.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
This should create a directory called root. You can move this directory wherever you want.



4. To use RooT, you need to source the script thisroot.sh available in root/bin.

To make root available anytime from your terminal, edit your .bashrc file, and add the following line at the end (replace ~/root with where you put the extracted directory):
# Enabling RooT
source ~/root/bin/thisroot.sh


Et Voila !