HOW TO INSTALL ROOT
[Linux or MacOS]
Please install the latest version of ROOT (version 6). Do not consider ROOT sources, but download binary for Linux and MacOS more suited for your computer from here. After unpacking the binary, and before using ROOT, you should use a special script distributed with ROOT:
source /root/bin/thisroot.sh (there are versions for [t]csh and fish, too.)
where is the location where you unpacked the ROOT distribution. Typically add these lines to your .profile or .login files.
Note for MacOS:
to properly run Root 6 you shall have installed XCode in folder
/Applications
[Windows 10]
You can exploit the
Windows Subsystem for Linux and download
the most recent ROOT 6
binary distribution for Ubuntu.
Instructions:
Check your Windows 10 version.
·
open a command prompt (WIN+R) "cmd"
·
call "systeminfo"
- check "OS version:". Example: "10.0.15063 N/D build
15063"
- check "System Type:". Example: "x64-based PC"
if you have a 32-bit
version: follow
instructions for
Windows 7, 8, 8.1.
if you have a 64-bit
version: Before going ahead, run Windows
Update and update Windows to the most recent build (if possible).
Now, follows the instructions related to your Windows 10 build.
Windows 10, Version 1809 October 2018 Update [Build
10.0.17763]
Windows 10, Version 1803 April 2018 Update [Build
10.0.17134]
Windows 10, Version 1709 Fall Creators Update [Build
10.0.16299]
1.
Turn the "Windows Subsystem for Linux" on:
Control Panel -> Programs -> Turn Windows features on
or off
2.
Install Ubuntu from Windows Store.
3.
Download a free-to-use X-server. For example:
4.
Check the Ubuntu version before continue:
-
open a command prompt and type "bash"
C:\>bash
5.
After bash is started, type "cat /etc/issue"
myself@mycomputer:/mnt/c$ cat /etc/issue
6.
Download the ROOT Binary distribution for your Ubuntu from the
ROOT web site:
Example: root_v6.10.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
7.
unzip the file in a folder, i.e. in
c:\ROOT\root_v6.10.06.Linux-ubuntu16-x86_64-gcc5.4
8.
open a command prompt and type "bash"
c:\...\>bash
9.
Install the
packages required to run ROOT in Ubuntu
- $ sudo apt-get update
(mandatory the first time you run the bash shell)
- $ sudo apt-get
install git dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev
libxext-dev
10.
Other packages to be installed
- $ sudo apt-get install
libtiff5
# for DISPLAY
- $ sudo apt-get install
x11-apps
# for DISPLAY
- $ sudo apt-get install
libatlas3-base # for TMVA
- $ sudo apt-get install
libtbb-dev
# for ROOT 6.12/06 and following
11.
set the DISPLAY
- $ cd $HOME
- $ nano .bashrc
add "export DISPLAY=:0" (without quotation marks) at
the end of the file
save the file (ctrl+o) and close the editor (ctrl+x)
- $ exit
(close the bash shell)
12.
run ROOT
- run MobaXterm and wait for the "X Server" icon
become green
- open a command prompt and type "bash":
- c:\....\>bash
- $ source /mnt/c/ROOT/root_v6.10.06.Linux-ubuntu16-x86_64-gcc5.4/root/bin/thisroot.sh
- $ root
To store the environment variables for the next
session, we suggest to add
"source /mnt/c/ROOT/root_v6.10.06.Linux-ubuntu16-x86_64-gcc5.4/root/bin/thisroot.sh"
at the end of the file .bashrc
Windows 10, Version 1703 Creators Update [Build
10.0.15063]
Windows 10, Version 1607 Anniversary Update [Build
10.0.14393]
1.
install "bash linux for windows" following these
instructions
2.
Then, follow the instruction above for Windows 10, Fall Creators Update
starting from item 3.
Windows 10, Version 1511 November Update [Build
10.0.10586]
Windows 10, Version 1507 First Release [Build
10.0.10240]
If you cannot update Windows to a more recent build, follow the instruction
for Windows 7, 8, 8.1.
In order to use ROOT v6 with Windows 7, 8 or 8.1 you should download and install a virtual machine emulating the Ubuntu operative system (a tutorial can be found here) and then download the most recent ROOT 6 binary distribution for Ubuntu from here.
As an alternative, you can use the
ROOT 5.34 distribution,
which can be downloaded from
here.
Download a distribution for Windows, i.e. root_v5.34.36.win32.vc10.exe. You
don't need an external C++ compiler.