Hi experts!
I’m just studying root tutorials histogram “hbars.C” example.
The example asked me to open first the file cernstaff.root in tutorials/tree directory.
Then it shows below
hyungjoe@hyungjoe-MINIPC:~$ cd $ROOTSYS/tutorials/tree
hyungjoe@hyungjoe-MINIPC:~/root/tutorials/tree$ root
------------------------------------------------------------------
| Welcome to ROOT 6.22/06 https://root.cern |
| (c) 1995-2020, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Nov 27 2020, 15:14:08 |
| From tags/v6-22-06@v6-22-06 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] .x cernstaff.root
Error in <TApplication::ExecuteFile>: macro cernstaff.root not found in path .:/home/hyungjoe/root/macros
root [1] TBrowser b("cernstaff.root");
root [2] Error in <TApplication::ExecuteFile>: macro cernbuild.C not found in path /home/hyungjoe/root/tutorials/tree/cernstaff.C
Error in <TFile::TFile>: file cernstaff.root does not exist
#0 0x00007f04dfa02dba in __GI___wait4 (pid=72158, stat_loc=stat_loc
entry=0x7ffd741c2888, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x00007f04dfa02d7b in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffd741c2888, options=options
entry=0) at waitpid.c:38
#2 0x00007f04df9720e7 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:172
#3 0x00007f04e0027d7e in TUnixSystem::StackTrace() () from /home/hyungjoe/root/lib/libCore.so.6.22
#4 0x00007f04dc27b890 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /home/hyungjoe/root/lib/libCling.so
#5 0x00007f04dc27b1d2 in cling_runtime_internal_throwIfInvalidPointer () from /home/hyungjoe/root/lib/libCling.so
#6 0x00007f04cbbcc47d in ?? ()
#7 0x00007f04000002ee in ?? ()
#8 0x00007f04df86db59 in _dlerror_run (operate=0x0, args=0x7ffd741c5490) at dlerror.c:170
#9 0x00007f04df86d53a in __dlsym (handle=<optimized out>, name=0x5562f2ce3410 "\377\377\377\377\377\377\377\377") at dlsym.c:72
#10 0x00007f04de7adc5c in llvm::sys::DynamicLibrary::SearchForAddressOfSymbol(char const*) () from /home/hyungjoe/root/lib/libCling.so
#11 0x00007f04dc2fcf45 in llvm::orc::LambdaResolver<cling::IncrementalJIT::addModule(std::shared_ptr<llvm::Module> const&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#1}, cling::IncrementalJIT::addModule(std::shared_ptr<llvm::Module> const&)::{lambda(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)#2}>::findSymbolInLogicalDylib(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /home/hyungjoe/root/lib/libCling.so
#12 0x0000000000000016 in ?? ()
#13 0x0000000000000000 in ?? ()
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_51:1:
/home/hyungjoe/root/tutorials/tree/cernstaff.C:24:4: warning: null passed to a callee that requires a non-null argument [-Wnonnull]
T->Draw("Nation:Division>>hN","","text");
___
_Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293)_
In this case am i copy and paste the cernstaff.root, cernbuild.C to /home/hyungjoe/root/macros ?
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided