This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
research:root [2024/03/19 17:27] msovara |
research:root [2024/10/28 07:12] (current) msovara |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Sign in to | Sign in to | ||
| - | | + | |
| - | Initialize | + | Ensure that your base conda environment has been initialised for your user on LENGAU. If it has already been initialized |
| + | |||
| + | Sanitize your shell environment | ||
| <code bash> | <code bash> | ||
| - | $ module purge | + | module purge |
| - | $ module add chpc/python/ | + | module add chpc/BIOMODULES |
| - | $ conda init bash | + | |
| </ | </ | ||
| - | Exit the session (exit both the chpclic1 and login nodes). Upon re-entering the cluster, your conda environment | + | Here is how you create a new environment |
| - | + | ||
| - | Sanitize your environment and add C++ libraries: | + | |
| <code bash> | <code bash> | ||
| - | $ module purge | + | conda create -n root_env root -c conda-forge |
| - | $ module add chpc/ | + | |
| </ | </ | ||
| + | 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... | ||
| - | Here is how you create a new environment with ROOT preinstalled: | + | When the installation completes successfully, |
| <code bash> | <code bash> | ||
| - | $ conda create | + | conda info --envs |
| </ | </ | ||
| - | This will make a new environment called root_env, and install ROOT into it. The installation takes about 20 minutes | + | The full path to the root installation amongst others will appear. |
| - | When complete you can list all your environments and their paths using: | + | Check whether the ROOT package has been installed, if successfully installed, it should appear in the list of packages: |
| <code bash> | <code bash> | ||
| - | $ conda info --envs | + | conda list |
| </ | </ | ||
| - | The full path to the root installation amongst others will appear | ||
| Activate the conda ROOT environment: | Activate the conda ROOT environment: | ||
| <code bash> | <code bash> | ||
| - | $ conda activate root_env | + | conda activate root_env |
| - | </ | + | |
| - | + | ||
| - | Confirm whether the ROOT package has been installed, if successfully installed, it should appear in the list of packages: | + | |
| - | <code bash> | + | |
| - | $ conda list | + | |
| </ | </ | ||
| - | Launch ROOT | + | Launch ROOT: |
| <code bash> | <code bash> | ||
| - | $ root | + | root |
| </ | </ | ||
| - | For each new ROOT session, in an [[quick: start| interactive session]] simply activate the ROOT conda environment and launch ROOT. Deactivate the environment when done using: | + | Deactivate the environment when done using: |
| <code bash> | <code bash> | ||
| - | $ conda deactivate | + | conda deactivate |
| </ | </ | ||