$ROOTSYS/README/README says the following:
"
Running interactive ROOT and the tutorial macros
To run the example macros, go to the root/tutorials directory and do, e.g.:
$ root
root [0] .x benchmarks.C
Under Cygwin on Win2003 I've installed the precompiled binaries
(root_v5.20.00.win32gcc.tar.gz).
When I in X go to the tutorials directory, start root and
execute the above command then it brings the errors below.
In directory $ROOTSYS/macros there are only 2 files:
fileopen.C
Dialogs.C
Is something missing or is it maybe a configuration issue?
I've inspected the file benchmarks.C. At first look the code IMHO seems to be ok, BUT if one changes the following line
gROOT->Macro(Form("%s%s",dir.Data(),macro)); to
gROOT->Macro(Form("%s/%s",dir.Data(),macro));
then it suddenly works!
But I'm not sure if that's really the right fix, so I better
ask you gurus out there on this.
In ~/.bash_profile I've these entries added and also had restartet the shell:
export ROOTSYS=/sw/root
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib
export MANPATH=$MANPATH:$ROOTSYS/man
The errors:
root [0] .x benchmarks.c
Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphics/framework.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.chsimple.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.chist/hsum.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphics/formula1.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.chist/fillrandom.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cfit/fit1.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.chist/h1draw.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphs/graph.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphs/gerrors.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphics/tornado.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphs/surfaces.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgraphs/zdemo.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgeom/geometry.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgeom/na49view.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.cgeom/na49view.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.ctree/ntuple1.C not found in path .:/sw/ROOT/macros: Error in <TROOT::Macro>: macro /sw/root/tutorials/benchmarks.crootmarks.C not found in path .:/sw/ROOT/macros:Received on Sat Jul 05 2008 - 06:08:17 CEST
This archive was generated by hypermail 2.2.0 : Wed Jul 09 2008 - 11:50:02 CEST