How to install Root?

1. On Windows/Cygwin

Go to the download area, choose your version (the recommended one is the safest), and look for the string "CYGWIN" (Ctrl+F).
Download the "*.win32gcc.tar.gz" file without paying attention to the comments.
Untar the package where you want. Set you environment variables (see below).
You're done. Root's ready to use!

2. On Linux

Here's a personal script to install ROOT on one of the xxx disks (~400 MB are needed) through the xxx servers.
Ask xxx to get some space on one of the xxx disks.
Watch out! You have to specify the root version you want inside the script.
If you want to install voxel features, set the install_ogl flag to 1.
>> rootinstall.pl

3. Environment variables

The ROOTSYS environment variable should be set to the path where root has been installed.
PATH and LD_LIBRARY_PATH should follow, e.g. in bash:

----------------------------------------------------------------------------
export ROOTSYS=/cygdrive/e/root/root_5.21.04 export PATH=$PATH:$ROOTSYS/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib:$ROOTSYS/lib/root ----------------------------------------------------------------------------

4. Architecture

According to me, the best thing to do is to use the following architecture:

----------------------------------------------------------------------------
root |_ root_v5.*** |_ zzz_install/ |_ root_v5.*** |_ zzz_install/ |_ root_v5.*** |_ zzz_install/ |_ config |_ rootlogon.C |_ myRootFunctions.C ----------------------------------------------------------------------------

i.e. one Root directory in which different versions of Root are installed as well as a config directory
which houses rootlogon.C and a set of personal (complex) useful time-saving Root functions myRootFunctions.C
that are linked everywhere you have some pieces of code (see here).


Back to Table of Contents
Copyright: Mathieu Trocmé, Mon 28 Dec 2009 (14:13:46)