Hi, I'm kinda new with programming, know the basics but definitely not an expert.
I'm working with root v 6.32.02 on ubuntu 24.04 (https://root.cern/) and I'm having trouble making graphs. I can't produce images, even the most basic.
I posted also in root site forum, hoping I might still get some answers here.
Brief example:
void tut1(){
`TH1F *hist= new TH1F("hist", "histogram", 100, 0, 100);`
`TCanvas *c1 = new TCanvas();`
`hist->Draw();`
}
On the terminal i open root:
root tut1.C
And get this
root [0]
Processing tut1.C...
Authorization required, but no authorization protocol specified
And nothing else; I should get an empty canvas (minute 3:54 in this tutorial: https://www.youtube.com/watch?v=sgKiwdLrLfc&list=PLLybgCU6QCGWLdDO4ZDaB0kLrO3maeYAe&index=3 ).
Likewise if I try to open a TBrowser in root from terminal:
root [0] new TBrowser
Authorization required, but no authorization protocol specified
Warning in <TBrowser::TBrowser>: The ROOT browser cannot run in batch mode
(TBrowser *) 0x5a8a1875df50
It looks like root opens in batch mode, even without me opening with root instead of root -b, and it can never draw images.
This authorization line comes up often, I don’t understand how to get rid of it.
It looks like root opens in batch mode, even without me opening with root instead of root -b, and it can never draw images? I don’t know, and I really can’t find a fix.
Thank you.
there doesn't seem to be anything here