Project

General

Profile

Installing ROOT from a CERN binary distribution » History » Version 1

Ole Hansen, 05/18/2018 12:50 AM

1 1 Ole Hansen
h1. Installing ROOT from a CERN binary distribution
2
3
Getting a ROOT binary distribution to work is actually very easy if your system matches the one the distribution was built for exactly. In particular, the compiler version should match as closely as possible. Here's how:
4
5
# Download the installation file (usually a @tar@ ball)
6
# Open a terminal
7
# Create a directory where you wish to install ROOT, for example @~/Apps@, and go there:
8
<pre>
9
APPS=~/Apps       # in tcsh: set APPS=~/Apps
10
mkdir -p $APPS
11
cd $APPS
12
</pre>
13
# Unpack the tar file into this directory. ROOT will be put in a subdirectory called @root@:
14
<pre>
15
tar xf <where-you-downloaded-root-tarfile>/root_v6.08.06.Linux-centos7-x86_64-gcc4.8.tar.gz   # change file name as appropriate
16
</pre>
17
# Finally, you need to run ROOT's setup script to configure your environment:
18
<pre>
19
source $APPS/root/bin/thisroot.sh
20
</pre>
21
22
See also [[ROOT Installation Guide#Testing your installation|Testing the installation]].
23
24
If no binary distribution available from CERN matches your platform exactly, things may still work. Suppose the ROOT distribution was built with a slightly older compiler than the one available on your system, for example, but everything else matches, it may be worth a try. For example, CERN's ROOT compiled for macOS 10.13 High Sierra labeled "clang90" appears to work with the latest Xcode, which provides "clang91". However, should you get strange error messages when running ROOT later, you know that you've probably been unsuccessful. At that point, it would be time to [[Building ROOT from source|build ROOT from source]].