Re: tutorial/benchmarks.C

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 9 Jul 2008 11:13:59 +0200


I cannot reproduce this problem. Are you executing benchmarks.C in $ROOTSYS/tutorials ?

Rene Brun

Adem24 wrote:
> $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
> -- this will run all tutorials and will benchmark your machine.
> -- For a rating of your machine check:
> -- http://root.cern.ch/root/html/examples/benchmarks_v100.html.
> -- If your machine is not in the list please mail the results to:
> -- rootdev_at_root.cern.ch.
> "
>
> 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 Wed Jul 09 2008 - 11:14:30 CEST

This archive was generated by hypermail 2.2.0 : Wed Jul 09 2008 - 17:50:02 CEST