# ROOT uninstalls on reboot

**URL:** <https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952>\
**Category:** ROOT\
**Created:** [July 23, 2014, 1:01am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952 "2014-07-23T01:01:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![adthelad](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adthelad](https://root-forum.cern.ch/u/adthelad)\
**Post date:** [July 23, 2014, 1:01am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/1 "2014-07-23T01:01:13Z")

</div>

Hi, I built root from source according to

[root.cern.ch/drupal/content/inst … oot-source](http://root.cern.ch/drupal/content/installing-root-source)

and root will run fine after compiling. However, after restarting linux root will no longer run. I get the message The program ‘root’ is currently not installed. Can anyone help me with this?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 23, 2014, 7:01am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/2 "2014-07-23T07:01:02Z")

</div>

Hi,

Well, in fact, ROOT doesn’t uninstall itself, it is simply not found in your PATH… If you look carefully at “Location independent installation”, under the point 3) Add bin/ to PATH and lib/ to LD\_LIBRARY\_PATH (with . bin/thisroot.sh). And you have to do that for each new session, unless you add those variables in your ~/.bashrc

Cheers, Bertrand.

---

<div class="post-metadata">

**Author:** ![adthelad](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adthelad](https://root-forum.cern.ch/u/adthelad)\
**Post date:** [July 23, 2014, 10:11am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/3 "2014-07-23T10:11:53Z")

</div>

ah thank you, sorry for wasting your time, i still get confused sometimes with linux and root. What do I need to add to my .bashrc? Would it be just . bin/thisroot.sh or do i need to cd to the directory where root was installed.  
Cheers

---

<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:** [July 23, 2014, 10:14am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/4 "2014-07-23T10:14:59Z")

</div>

source /FULL/PATH/TO/YOUR/ROOT/bin/thisroot.sh

---

<div class="post-metadata">

**Author:** ![adthelad](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adthelad](https://root-forum.cern.ch/u/adthelad)\
**Post date:** [July 23, 2014, 10:37am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/5 "2014-07-23T10:37:42Z")

</div>

i added

. home/user/root/v5-34-00-patches/bin/thisroot.sh to my .bashrc located in the user directory, as well as the .bashrc located in the home directory. However, root is still not found after a reboot. By running the command manually in the terminal after login it does work, and linux can find root - which leads me to believe that the .bashrc is not doing the job. Any thoughts?

---

<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:** [July 23, 2014, 10:39am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/6 "2014-07-23T10:39:15Z")

</div>

source /home/…

BTW. Remember to open a new terminal after you modify “.bashrc” (so that the new settings are loaded in the new session).

---

<div class="post-metadata">

**Author:** ![adthelad](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adthelad](https://root-forum.cern.ch/u/adthelad)\
**Post date:** [July 23, 2014, 10:47am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/7 "2014-07-23T10:47:18Z")

</div>

okay i added the correct path now to .bashrc. When i open a terminal i get the warning

bash: /…/…/bin/thisroot.sh: Permission denied

What should i do?  
thanks for your patience

---

<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:** [July 23, 2014, 10:52am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/8 "2014-07-23T10:52:42Z")

</div>

put in your “.bashrc” (instead of the “.” character, you can put the “source” word there, but many “sh” related shells do not support it):  
. /home/user/root/v5-34-00-patches/bin/thisroot.sh

---

<div class="post-metadata">

**Author:** ![adthelad](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/57b2e6/32.png) [@adthelad](https://root-forum.cern.ch/u/adthelad)\
**Post date:** [July 23, 2014, 10:55am UTC](https://root-forum.cern.ch/t/root-uninstalls-on-reboot/17952/9 "2014-07-23T10:55:26Z")

</div>

great, it is working now - thanks for your help Wile E. Coyote and bellenot
