RE: [ROOT] incorrect .rootrc in distributions

From: Armin Reichold (a.reichold1@physics.ox.ac.uk)
Date: Thu Jun 29 2000 - 15:25:08 MEST


Hi Fons,
sorry to say so, but it does not work. I can not even start root because it
does not find any dll's if I leave my .rootrc the way it is distributed. If
I change it the way I indicate it does work. I conclude: Root does not parse
the $(ENVVARIABLENAME) but sends it to the operating system. At least for
the cases where the WinNT.*.Root.DynamicPath is concerned.
cheers Armin

*************************************************
* Dr. Armin Reichold            |  private:     *
* Research Officer              |  17 Frys Hill *
* University of Oxford          |  Oxford       *
* Particle & Nuclear Phys. Lab. |  OX4 7GW      *
* 1 Keble Road                  |  UK           *
* Oxford OX1 3RH                                *
* UK                                            *
* Room 612                                      *
*                                               *
* Tel.  : +44-(0)1865-273358...(office)         *  
* Tel.  : +44-(0)1865-434856...(private)        *
* Mobile: +44-(0)7930-431102...(emergency only) *
* Fax.  : +44-(0)1865-273418...(office)         *
* E-Mail: a.reichold1@physics.ox.ac.uk          *
* Netmeeting: ppnt67.physics.ox.ac.uk (business)*
* ---//--- Dir. Server: webnt.physics.ox.ac.uk  *
*************************************************


-----Original Message-----
From: Fons Rademakers [mailto:Fons.Rademakers@cern.ch]
Sent: Thursday, June 29, 2000 1:53 PM
To: Armin Reichold
Cc: 'Rene Brun'; Christian Haeberli; roottalk@pcroot.cern.ch
Subject: Re: [ROOT] incorrect .rootrc in distributions


Hi Armin,

   it should work as is since ROOT interprets $(ROOTSYS) and not WinNT.
Try to put a macro mymacro.C in %ROOTSYS%\macros and then in root execute:
.which mymacro.C
You see it will print the correct path, and .x mymacro.C will execute the
right macro.

Cheers, Fons.



Armin Reichold wrote:
> 
> Hi,
> the .rootrc files distributed since several versions of root have a bug
> concerning NT environment variables. Where it says:
> 
> WinNT.*.Root.DynamicPath:   ./;$(ROOTSYS);$(ROOTSYS)/bin;$(PATH)
> WinNT.*.Root.MacroPath:     ./;$(ROOTSYS)/macros
> 
> it should say:
> 
> WinNT.*.Root.DynamicPath:   ./;%ROOTSYS%;%ROOTSYS%/bin;$(PATH)
> WinNT.*.Root.MacroPath:     ./;%ROOTSYS%/macros
> 
> because windows evaluates environment variables via %VARIBABLE_NAME% and
not
> via $(VARIBALE_NAME).
> 
> cheers Armin
> 
> *************************************************
> * Dr. Armin Reichold            |  private:     *
> * Research Officer              |  17 Frys Hill *
> * University of Oxford          |  Oxford       *
> * Particle & Nuclear Phys. Lab. |  OX4 7GW      *
> * 1 Keble Road                  |  UK           *
> * Oxford OX1 3RH                                *
> * UK                                            *
> * Room 612                                      *
> *                                               *
> * Tel.  : +44-(0)1865-273358...(office)         *
> * Tel.  : +44-(0)1865-434856...(private)        *
> * Mobile: +44-(0)7930-431102...(emergency only) *
> * Fax.  : +44-(0)1865-273418...(office)         *
> * E-Mail: a.reichold1@physics.ox.ac.uk          *
> * Netmeeting: ppnt67.physics.ox.ac.uk (business)*
> * ---//--- Dir. Server: webnt.physics.ox.ac.uk  *
> *************************************************
> 

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET