Skip to content

Prerequisites

Gian Michele Innocenti edited this page Apr 10, 2019 · 2 revisions

IMPORTANT:

If you plan to use the framework starting from existing data in DataFrame format, please skip the installation of ROOT and install only python 3.6.6.

MacOs Sierra 10.13.16

Install python 3.6.6

Get from the official website https://www.python.org/downloads/mac-osx/ the version Python 3.6.6. Follow the instructions and install it. The predefined folder should be /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.

Install ROOT with Python 3

This assumes that you are using the python version you just installed placed in /Library/Frameworks/Python.framework/Versions/3.6/bin/python3. If you want to use another version change the path accordingly.

git clone http://github.com/root-project/root.git
cd root
git checkout -b v6-14-02 v6-14-02
cd ..
mkdir build
sudo chown -R $(whoami):$(id -g -n $(whoami)) build
cd build
cmake -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 ../root/
make -j<num_core_to_use>
source bin/thisroot.sh

Add in your bash_profile (if you use Terminal)

This assumes you have the build in your home folder. If another choice was made change it accordingly

source build/bin/thisroot.sh

Ubuntu 18.04

Install cmake and other utilities

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

You might need also:

sudo add-apt-repository universe
sudo apt-get install build-essential

Install python 3.6.6

sudo apt-get install python3.6 python3-tk python3-pip

Install ROOT with Python 3

This assumes that you are using the python version you just installed placed in /usr/bin/python3. If you want to use another version change the path accordingly.

git clone http://github.com/root-project/root.git
cd root
git checkout -b v6-14-02 v6-14-02
cd ..
mkdir build
sudo chown -R $(whoami):$(id -g -n $(whoami)) build
cd build
cmake -DPYTHON_EXECUTABLE=/usr/bin/python3 ../root/
make -j<num_core_to_use>

Add in your bash_profile (if you use Terminal)

source build/bin/thisroot.sh