# Root Run Problem

**URL:** <https://root-forum.cern.ch/t/root-run-problem/44148>\
**Category:** Newbie\
**Created:** [March 24, 2021, 5:54pm UTC](https://root-forum.cern.ch/t/root-run-problem/44148 "2021-03-24T17:54:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lluvia](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@Lluvia](https://root-forum.cern.ch/u/Lluvia)\
**Post date:** [March 24, 2021, 5:54pm UTC](https://root-forum.cern.ch/t/root-run-problem/44148/1 "2021-03-24T17:54:36Z")

</div>

I installed root and wrote source home/usrname/Downloads/root/bin/thisroot.sh in terminal. it was run.  
But i run root again

```auto
username@Ubuntu-IP:~$ root

Command 'root' not found, did you mean:

  command 'rootv' from deb xawtv (3.106-1)
  command 'toot' from deb toot (0.25.2-1)
  command 'proot' from deb proot (5.1.0-1.3)
  command 'rott' from deb rott (1.1.2+svn287-3)

Try: sudo apt install <deb name>

```

How do i fix this problem ?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 24, 2021, 8:20pm UTC](https://root-forum.cern.ch/t/root-run-problem/44148/2 "2021-03-24T20:20:44Z")

</div>

[Installing ROOT](https://root.cern/install/)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 25, 2021, 7:42am UTC](https://root-forum.cern.ch/t/root-run-problem/44148/3 "2021-03-25T07:42:14Z")

</div>

> [@Lluvia](#):
>
> I installed root

Can you explain how you did it ?

---

<div class="post-metadata">

**Author:** ![Lluvia](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@Lluvia](https://root-forum.cern.ch/u/Lluvia)\
**Post date:** [March 25, 2021, 11:25am UTC](https://root-forum.cern.ch/t/root-run-problem/44148/4 "2021-03-25T11:25:00Z")

</div>

I installed all required dependencies and downloaded binary distribution. Then unpack the archive (tar -xzvf root\_v6.22.00.Linux-ubuntu19-x86\_64-gcc9.2.tar.gz) finally source the root (source root/bin/thisroot.sh).  
After these steps i wrote root in terminal, it was worked but when i was wrote root other terminal, i saw this ;

```auto
username@Ubuntu-IP:~$ root

Command 'root' not found, did you mean:

  command 'rootv' from deb xawtv (3.106-1)
  command 'toot' from deb toot (0.25.2-1)
  command 'proot' from deb proot (5.1.0-1.3)
  command 'rott' from deb rott (1.1.2+svn287-3)

Try: sudo apt install <deb name>

```

do i have to `source thisroot.sh` whenever i need to use root ?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [March 25, 2021, 11:34am UTC](https://root-forum.cern.ch/t/root-run-problem/44148/5 "2021-03-25T11:34:16Z")

</div>

[Installing ROOT → Download a pre-compiled binary distribution](https://root.cern/install/#download-a-pre-compiled-binary-distribution):

> To avoid having to `source thisroot.sh` every time one needs to use ROOT, it is typical to add the instruction to `.bashrc`, `.profile` or analogous configuration files. Note, however, that sourcing `thisroot.sh` might interfere with ROOT versions installed with different methods.

---

<div class="post-metadata">

**Author:** ![Lluvia](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/f17d59/32.png) [@Lluvia](https://root-forum.cern.ch/u/Lluvia)\
**Post date:** [March 25, 2021, 11:41am UTC](https://root-forum.cern.ch/t/root-run-problem/44148/6 "2021-03-25T11:41:48Z")

</div>

How do I add the command to configuration files ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 25, 2021, 12:01pm UTC](https://root-forum.cern.ch/t/root-run-problem/44148/7 "2021-03-25T12:01:36Z")

</div>

With your favorite text editor (vi, emacs …)
