Installing ROOT from a CERN binary distribution¶
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:
- Download the installation file (usually a
- Open a terminal
- Create a directory where you wish to install ROOT, for example
~/Apps, and go there:
APPS=~/Apps # in tcsh: set APPS=~/Apps mkdir -p $APPS cd $APPS
- Unpack the tar file into this directory. ROOT will be put in a subdirectory called
tar xf <where-you-downloaded-root-tarfile>/root_v6.08.06.Linux-centos7-x86_64-gcc4.8.tar.gz # change file name as appropriate
- Finally, you need to run ROOT's setup script to configure your environment:
See also Testing the installation.
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 build ROOT from source.
Updated by Ole Hansen about 5 years ago · 1 revisions