User Tools

Site Tools


research:root

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
research:root [2024/03/18 13:20]
msovara created
research:root [2024/10/28 07:12] (current)
msovara
Line 1: Line 1:
-<code bash> +===== Installing ROOT using a python virtual environment ===== 
-module purge + 
-</code>+Sign in to 
 + LENGAU and then ssh to dtn 
 + 
 +Ensure that your base conda environment has been initialised for your user on LENGAU. If it has already been initialized you should observe (base) alongside your user ID. This means that .bashrc file has been modified to incorporate conda directives. If not start here: https://wiki.chpc.ac.za/guide:python?s[]=%2Apython%2A 
 + 
 +Sanitize your shell environment and then load the BIOMODULES module: 
  
 <code bash> <code bash>
 +module purge
 module add chpc/BIOMODULES module add chpc/BIOMODULES
-Adds C++ libraries and other things 
 </code> </code>
  
 +Here is how you create a new environment with ROOT preinstalled:
 <code bash> <code bash>
-module add python/0.3.11.4+conda create -n root_env root -c conda-forge
 </code> </code>
 +This will make a new environment called root_env, and install ROOT into it. Installation times may vary. When I did it it took between 3-5 minutes...
  
 +When the installation completes successfully, you can list all your environments and their paths using:
 <code bash> <code bash>
-mkdir dev; cd dev+conda info --envs
 </code> </code>
 +The full path to the root installation amongst others will appear. 
  
 +Check whether the ROOT package has been installed, if successfully installed, it should appear in the list of packages:
 <code bash> <code bash>
-virtualenv root_env+conda list
 </code> </code>
  
-<code bash> +Activate the conda ROOT environment:
-source root_env/bin/activate +
-</code>+
  
 <code bash> <code bash>
-conda config --set channel_priority strict+conda activate root_env
 </code> </code>
  
 +Launch ROOT: 
 <code bash> <code bash>
-conda config --env --add channels conda-forge+root
 </code> </code>
-The first time you enter the environment, you should add the conda-forge channel to the search list (otherwise, you will have to add **-c conda-forge** every time you install or update something): 
  
-<code bash> +Deactivate the environment when done using:
-conda install root -c conda-forge +
-</code> +
-Install ROOT+
  
 <code bash> <code bash>
-conda config --add --env channels conda-forge+conda deactivate
 </code> </code>
-If you want to enable conda-forge as a searched channel globally so that you don’t have to add this flag every time you do anything, run:+  
 + 
 + 
 + 
 + 
 + 
/app/dokuwiki/data/attic/research/root.1710760829.txt.gz · Last modified: 2024/03/18 13:20 by msovara