Having two versions of ROOT at the same time?

Hello,
How is it possible to have two different versions of ROOT at the same time ? For example, I’ld like to have version 4.04/02 and 5.02 on the cluster.

Hi,

you put them into different directories (e.g. ~mboisso/root_4.04.02/ and ~mboisso/root_5.02/), and set ROOTSYS, PATH, and LD_LIBRARY_PATH to whatever version you want to use. You might want to use scripts for that which you source before starting root: under bash, simply run
". ~mboisso/root_4.04.02/root.env"
with ~mboisso/root_4.04.02/root.env containing the lines
export ROOTSYS=~mboisso/root_4.04.02/
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$PATH_LIBRARY_PATH

Axel.

Thank you very much, it works