# Installing ROOT on linux mint 21.1

**URL:** <https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326>\
**Category:** Newbie\
**Created:** [February 28, 2024, 12:04pm UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326 "2024-02-28T12:04:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mario\_Magalini](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_magalini/32/35816_2.png) [@Mario\_Magalini](https://root-forum.cern.ch/u/Mario_Magalini)\
**Post date:** [February 28, 2024, 12:04pm UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326/1 "2024-02-28T12:04:56Z")

</div>

Hi everyone!  
Here a newbie  
I’m having troubles with the installation of pre-compiled binary distribution.  
I have a linux mint 21.1, i have read the i can use it like a ubuntu 22.04.  
I’m blocked with the fourth step:  
“Add the ROOT libraries and executables to your environment by sourcing the appropriate `thisroot.*` script. These setup scripts can be found in the ROOT binary release, in the `bin` directory.”  
I really don’t know what does it mean, can someone explain to me what to do now?  
Greetings

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [February 28, 2024, 12:23pm UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326/2 "2024-02-28T12:23:23Z")

</div>

Wherever you extracted the ROOT binaries, there is a subdirectory called “bin”, and inside it there is the file “thisroot.sh”; you need to run (“source”) this file every time you open a terminal. To automate this, you add this sourcing to a config file (in your home directory) called .bashrc (note the dot at the beginning, it’s a hidden file).  
Supposing you extracted ROOT to “/home/yourname/root” (modify accordingly!):  
1 - Open a terminal window  
2 - Type:  
`cd` (and hit enter; this takes you to your home directory, e.g. /home/yourname, in case you were not there already)  
3 - Type (copy-paste this to avoid typos):  
`nano .bashrc`  
and enter; this opens the file in a simple text editor; go to the end of the file (use the arrows, page down/up,… but not the mouse) and add this line:  
` source /home/yourname/root/bin/thisroot.sh`  
4 - Hit ctrl+x to exit (it will ask if you want to save the file, type y for yes and exit)  
5 - Close the terminal window

Now, every time you open a new terminal, you should be able to just type root (and enter) to run root.

---

<div class="post-metadata">

**Author:** ![Mario\_Magalini](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mario_magalini/32/35816_2.png) [@Mario\_Magalini](https://root-forum.cern.ch/u/Mario_Magalini)\
**Post date:** [March 1, 2024, 9:01am UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326/3 "2024-03-01T09:01:40Z")

</div>

IT WORKS!!!  
Thank you so much!

---

<div class="post-metadata">

**Author:** ![Utkarsh\_Mishra](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utkarsh_mishra/32/35860_2.png) [@Utkarsh\_Mishra](https://root-forum.cern.ch/u/Utkarsh_Mishra)\
**Post date:** [March 6, 2024, 10:31am UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326/4 "2024-03-06T10:31:32Z")

</div>

/usr/include/strings.h:68:14: note: candidate found by name lookup is ‘index’ extern char \*index (const char \*\_\_s, int \_\_c) i found trouble to write the proggram in cern root then what can i do for fix this problem

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [March 6, 2024, 11:07am UTC](https://root-forum.cern.ch/t/installing-root-on-linux-mint-21-1/58326/5 "2024-03-06T11:07:19Z")

</div>

It’s better if you open a new thread with your specific problem; and make sure you add your OS and ROOT details (when you create the thread some links are added with instructions and suggestions); how you installed/compiled it, version, etc.
