Installing ROOT on your laptop: Difference between revisions
From IIHE Wiki
Jump to navigationJump to search
No edit summary |
m (Root moved page Installing RooT on your laptop to Installing ROOT on your laptop) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
1. Look at the pre-requisites on the [https://root.cern | 1. Look at the pre-requisites on the [https://root.cern/install/dependencies/ CERN website] | ||
:For '''ubuntu''', you need to do: | :For '''ubuntu''', you need to do: | ||
<pre>sudo apt-get install | <pre>sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python3 libssl-dev </pre> | ||
:and I strongly suggest installing the optionnal packages too: | :and I strongly suggest installing the optionnal packages too: | ||
<pre>sudo apt-get install gfortran | <pre>sudo apt-get install gfortran libpcre3-dev xlibmesa-glu-dev libglew-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python3-dev python3-numpy libxml2-dev libkrb5-dev libgsl0-dev qtwebengine5-dev nlohmann-json3-dev | ||
libmysqlclient-dev libfftw3-dev | |||
libgsl0-dev | |||
</pre> | </pre> | ||
<br><br> | <br><br> | ||
Line 12: | Line 10: | ||
:b. Under '''Binary distributions''' (ie already compiled for a specific platform), download the tar.gz file appropriate to your platform | :b. Under '''Binary distributions''' (ie already compiled for a specific platform), download the tar.gz file appropriate to your platform | ||
::* To get your '''ubuntu''' version, type '''cat /etc/lsb-release''' in a terminal | ::* To get your '''ubuntu''' version, type '''cat /etc/lsb-release''' in a terminal | ||
<br><br> | <br><br> | ||
3. Extract the compressed tarball: | 3. Extract the compressed tarball: | ||
<pre> tar xzvf root_v6.30.06.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz </pre> | |||
:This should create a directory called root. You can move this directory wherever you want. | :This should create a directory called root. You can move this directory wherever you want. | ||
<br><br> | <br><br> | ||
4. To use | 4. To use ROOT, you need to source the script '''thisroot.sh''' available in root/bin. | ||
:To make root available anytime from your terminal, edit your .bashrc file, and add the following line at the end (replace ~/root with where you put the extracted directory): | :To make root available anytime from your terminal, edit your .bashrc file, and add the following line at the end (replace ~/root with where you put the extracted directory): | ||
# Enabling RooT | # Enabling RooT |
Latest revision as of 09:07, 5 April 2024
1. Look at the pre-requisites on the CERN website
- For ubuntu, you need to do:
sudo apt-get install dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python3 libssl-dev
- and I strongly suggest installing the optionnal packages too:
sudo apt-get install gfortran libpcre3-dev xlibmesa-glu-dev libglew-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev python3-dev python3-numpy libxml2-dev libkrb5-dev libgsl0-dev qtwebengine5-dev nlohmann-json3-dev
2. Download the latest release from the CERN download page
- a. Click on the latest release
- b. Under Binary distributions (ie already compiled for a specific platform), download the tar.gz file appropriate to your platform
- To get your ubuntu version, type cat /etc/lsb-release in a terminal
3. Extract the compressed tarball:
tar xzvf root_v6.30.06.Linux-ubuntu22.04-x86_64-gcc11.4.tar.gz
- This should create a directory called root. You can move this directory wherever you want.
4. To use ROOT, you need to source the script thisroot.sh available in root/bin.
- To make root available anytime from your terminal, edit your .bashrc file, and add the following line at the end (replace ~/root with where you put the extracted directory):
# Enabling RooT source ~/root/bin/thisroot.sh
Et Voila !