Cannot start anything via ROOT [EDIT]

I’ve just downloaded the binaries and installed ROOT -version 5.28.

I’ve run the script to modify the path of PATH and LD_LIBRARY_PATH with the command

Yet when I put the command “root” in the terminal what happens is that ROOT starts but I can’t use that.

Truth to be told, I’m not sure of what is suppose to happen but I read from the terminal that I might start typing the commands “.x demos.C” and “.x benchmarks.C”.

But while “.x demos.C” starts with no problem (it loads a panel on the left of the screen) I can’t click onto any of those buttons; moreover if I type “.x benchmarks.C” nothing is loaded on the screen and the terminal prints the following lines (the first line is what I’ve typed):

root [0] .x benchmarks.C Error in <TApplication::ExecuteFIle>: macro benchmarks.C not found in path .:/home/giuscri/root/macros:

Just for the records, if I search “benchmarks.C” in the directory “/home/giuscri/root/macros” I can’t find that: the terminal is right.

I know that the whole thing is quite confused but it is cause I had no idea of what a terminal was before the day before yesterday.

Thank you!


Ok, now I got what Pepe was saying. So before launching ROOT I type:

That works, in a sense that I can find the files benchmarks.C and demos.C. But that does not change anything. I’m going to copy the lines the shell prints, yet I’m afraid that is not very much useful:

[code]root [0] .x benchmarks.C
dlopen error: cannot open shared object file: No such file or directory
Load Error: Failed to load Dynamic link library /home/giuscri/root/lib/
Error in TGHScrollBar::TGHScrollBar: arrow_.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_
.xpm not found

*** Break *** segmentation violation
Generating stack trace…
0xb52a3b75 in TGHScrollBar::SetPosition(int) + 0x95 from /home/giuscri/root/lib/
0xb51e5134 in TGCanvas::Layout() + 0x3f4 from /home/giuscri/root/lib/
0xb51e4d0d in TGCanvas::MapSubwindows() + 0x7d from /home/giuscri/root/lib/
0xb5230607 in TGCompositeFrame::MapSubwindows() + 0x97 from /home/giuscri/root/lib/
0xb5230607 in TGCompositeFrame::MapSubwindows() + 0x97 from /home/giuscri/root/lib/
0xb53179cd in TRootCanvas::CreateCanvas(char const*) + 0x1f7d from /home/giuscri/root/lib/
0xb5317f80 in TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) + 0x80 from /home/giuscri/root/lib/
0xb532302a in TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) + 0x5a from /home/giuscri/root/lib/
0xb59e876e in TCanvas::Constructor(char const*, char const*, int, int, int, int) + 0x23e from /home/giuscri/root/lib/
0xb59e9038 in TCanvas::TCanvas(char const*, char const*, int, int, int, int) + 0xd8 from /home/giuscri/root/lib/
0xb5a62a47 in from /home/giuscri/root/lib/
0xb6ad7056 in Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) + 0x46 from /home/giuscri/root/lib/
0xb6b90d8c in G__execute_call + 0x5c from /home/giuscri/root/lib/
0xb6b91b5f in G__call_cppfunc + 0x20f from /home/giuscri/root/lib/
0xb6b6bffc in G__interpret_func at ifunc.cxx:0 from /home/giuscri/root/lib/
0xb6b58666 in G__getfunction at func.cxx:0 from /home/giuscri/root/lib/
0xb6b8b453 in G__new_operator + 0x1303 from /home/giuscri/root/lib/
0xb6b312b9 in G__getexpr at expr.cxx:0 from /home/giuscri/root/lib/
0xb6b3815c in G__getexpr at expr.cxx:0 from /home/giuscri/root/lib/
0xb6bbe419 in G__exec_statement at parse.cxx:0 from /home/giuscri/root/lib/
0xb6b6b5f7 in G__interpret_func + 0x2657 from /home/giuscri/root/lib/
0xb6b5873f in G__getfunction at func.cxx:0 from /home/giuscri/root/lib/
0xb6b29fd8 in G__getitem at expr.cxx:0 from /home/giuscri/root/lib/
0xb6b2e53c in G__getexpr at expr.cxx:0 from /home/giuscri/root/lib/
0xb6b3caf5 in G__calc_internal at expr.cxx:0 from /home/giuscri/root/lib/
0xb6bd0da7 in G__process_cmd + 0x4c77 from /home/giuscri/root/lib/
0xb72276cc in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) + 0x3fc from /home/giuscri/root/lib/
0xb72250bf in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) + 0xcf from /home/giuscri/root/lib/
0xb7172c1f in TApplication::ExecuteFile(char const*, int*, bool) + 0xabf from /home/giuscri/root/lib/
0xb7172efc in TApplication::ProcessFile(char const*, int*, bool) + 0x2c from /home/giuscri/root/lib/
0xb71705ff in TApplication::ProcessLine(char const*, bool, int*) + 0x7df from /home/giuscri/root/lib/
0xb686ace8 in TRint::HandleTermInput() + 0x1d8 from /home/giuscri/root/lib/
0xb686a7b5 in TTermInputHandler::Notify() + 0x25 from /home/giuscri/root/lib/
0xb686d534 in TTermInputHandler::ReadNotify() + 0x14 from /home/giuscri/root/lib/
0xb726a789 in TUnixSystem::CheckDescriptors() + 0x1a9 from /home/giuscri/root/lib/
0xb726ade6 in TUnixSystem::DispatchOneEvent(bool) + 0x106 from /home/giuscri/root/lib/
0xb71d9671 in TSystem::InnerLoop() + 0x21 from /home/giuscri/root/lib/
0xb71dc3fb in TSystem::Run() + 0x8b from /home/giuscri/root/lib/
0xb716e0d7 in TApplication::Run(bool) + 0x37 from /home/giuscri/root/lib/
0xb686d014 in TRint::Run(bool) + 0x3b4 from /home/giuscri/root/lib/
0x08048db5 in main + 0x85 from /home/giuscri/root/bin/root.exe
0xb65c7ca6 in __libc_start_main + 0xe6 from /lib/i686/cmov/
0x08048c41 in __gxx_personality_v0 + 0x6d from /home/giuscri/root/bin/root.exe
Root > Function benchmarks() busy flag cleared

Thanks for your attention.


[quote=“Pepe Le Pew”]${ROOTSYS}/tutorials

Mhn, could you be clearer? What does that mean, please?

Pepe is telling you in which directory you can find benchmarks.C …