Re: macro search path problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Dec 02 1999 - 00:15:36 MET


Hi David,
The correct sysntax is shown in the default .rootrc file in
$ROOTSYS/tutorials/.rootrc
Here are the few lines related to setting the macro path:
# Path used by dynamic loader to find shared libraries and macros
# Paths are different for Unix and Windows. The example shows the defaults
# for all ROOT applications for either Unix or Windows.
Unix.*.Root.DynamicPath:    .:$(ROOTSYS)/lib
Unix.*.Root.MacroPath:      .:$(ROOTSYS)/macros
WinNT.*.Root.DynamicPath:   ./;$(ROOTSYS);$(ROOTSYS)/bin;$(PATH)
WinNT.*.Root.MacroPath:     ./;$(ROOTSYS)/macros

The following should work
Unix.*.Root.MacroPath:      .:..:$(ROOTSYS)/macros

Rene Brun

On Tue, 30 Nov 1999, David Kirkby wrote:

> Hello - I am having trouble loading a macro in my search path. I have
> tested the following with 2.23/09:
> 
> root [0] .L RooFitTools/RooFitTest.cc
> Error in <TRint::ProcessLine>: macro RooFitTools/RooFitTest.cc not found in path ..
> root [1] .L ../RooFitTools/RooFitTest.cc
> 
> 
> My .rootrc contains the single line:
> 
> Root.MacroPath: ..
> 
> Any ideas? It looks like RInt knows about my path since it correctly
> prints it in the error message. Command completion does list this file
> via the search path, and adding the '..' by hand also works.
> 
> David
> 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET