User Tools

Site Tools


research:root

This is an old revision of the document!


Installing ROOT using a python virtual environment

Sign in to LENGAU and then ssh into chpclic1

Initialize your shell environment to integrate conda, you only need to do this once and changes will “permanently” take effect:

$ module purge
$ module add chpc/python/anaconda/3-2019.10
$ conda init bash

Exit the session (exit both the chpclic1 and login nodes). Upon re-entering the cluster, your conda environment will be activated. You'll observe (base) alongside your user ID, and your .bashrc file will have been modified to incorporate conda directives.

Sanitize your environment and add C++ libraries:

$ module purge
$ module add chpc/BIOMODULES

Here is how you create a new environment with ROOT preinstalled:

$ conda create -n root_env root -c conda-forge

This will make a new environment called root_env, and install ROOT into it. The installation takes about 20 minutes to complete…

When complete you can list all your environments and their paths using:

$ conda info --envs

The full path to the root installation amongst others will appear

Activate the conda ROOT environment:

$ conda activate root_env

Confirm whether the ROOT package has been installed, if successfully installed, it should appear in the list of packages:

$ conda list

Launch ROOT

$ root

For each new ROOT session, in an interactive session simply activate the ROOT conda environment and launch ROOT. Deactivate the environment when done using:

$ conda deactivate
/app/dokuwiki/data/attic/research/root.1710862049.txt.gz · Last modified: 2024/03/19 17:27 by msovara