# ROOT installation: opening in batch mode

**URL:** <https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182>\
**Category:** Newbie\
**Created:** [February 15, 2024, 3:51pm UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182 "2024-02-15T15:51:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadolphus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@tadolphus](https://root-forum.cern.ch/u/tadolphus)\
**Post date:** [February 15, 2024, 3:51pm UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182/1 "2024-02-15T15:51:46Z")

</div>

* * *

Hello,

I am trying to install ROOT 6.30.04 on Ubuntu 22.04.03 for Windows. I installed ROOT from source, following the steps in the Youtube video “CERN ROOT Tutorial 2: Installing ROOT” (but installing the later version of ROOT). ROOT appears to have been installed, but when I try to run ‘.demo’ I get the below error message:

Error in \< TRint::ProcessLine\>: Cannot show demos in batch mode!

I am confused as to why ROOT appears to be opening in batch mode. Any help to get ROOT to work would be massively appreciated.

Thanks!

* * *

---

<div class="post-metadata">

**Author:** ![mczurylo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mczurylo/32/33269_2.png) [@mczurylo](https://root-forum.cern.ch/u/mczurylo)\
**Post date:** [February 15, 2024, 3:57pm UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182/2 "2024-02-15T15:57:53Z")

</div>

Hi @tadolphus,

Welcome to the forum! Is there any particular reason why you would like to build ROOT from source? There are a few simpler alternatives, you can take a look at: [Installing ROOT - ROOT](https://root.cern/install/)

Cheers,  
Marta

---

<div class="post-metadata">

**Author:** ![ajaydeo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@ajaydeo](https://root-forum.cern.ch/u/ajaydeo)\
**Post date:** [February 15, 2024, 4:03pm UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182/3 "2024-02-15T16:03:22Z")

</div>

How do you execute that command?

From the error, it appears that you are trying to run the demos in a batch mode.  
If that is the case, there are examples/demos which display graphics using `TCanvas`, which is not allowed in the batch mode. This is my guess.

---

<div class="post-metadata">

**Author:** ![tadolphus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/58f4c7/32.png) [@tadolphus](https://root-forum.cern.ch/u/tadolphus)\
**Post date:** [February 23, 2024, 9:27am UTC](https://root-forum.cern.ch/t/root-installation-opening-in-batch-mode/58182/4 "2024-02-23T09:27:48Z")

</div>

Thanks Marta and @ajaydeo,

I uninstalled what I had done so far and installed ROOT using Snap, which seemed to work.

Thanks for your help!
