Re: [ROOT] Problem running root under Windows 98.

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Mon Feb 26 2001 - 14:20:46 MET


Hi Raymond,
Please install your ROOT in c:\root.
It is very likely the long name with the space in it (i.e. Program Files)
which gives you the error.
Another way out is to specify the path in ROOTSYS for the long names
betwee a pair of "; however, I would advise you to use c:\root as the
ROOTSYS.

                                                Cheers,
                                                 Nick.

-- 
Dr. Nick van Eijndhoven mailto:nick@phys.uu.nl http://www.phys.uu.nl/~nick
--------------------------------------------------------------------------
Org.:    Utrecht University/Nikhef, Department of Subatomic Physics
Address: P.O. Box 80.000, NL-3508 TA Utrecht, The Netherlands
Phone:   +31-30-2532331(direct) +31-30-2531492(secr.)  Fax: +31-30-2518689
NIKHEF:  +31-20-5922028(direct) +31-20-5922000(secr.)  Fax: +31-20-5925155
CERN:    +41-22-7679751(direct) +41-22-7675857(secr.)  Fax: +41-22-7679480
Offices: Buys Ballot lab. 710 (Utrecht)   H350 (Nikhef)   B23 1-020 (CERN)
--------------------------------------------------------------------------
 

Raymond Beuselinck wrote:
> 
> Hi Rene,
> 
> I have followed your instructions and updated my autoexec.bat as indicated and
> rebooted my laptop. The errors I get are the same as I had before.  (I had
> previously defined the relevent variables by hand to test root).
> 
> I tried to run the root tutorials, starting root in the directory
> C:\Program Files\root\tutorials  I get the following errors:
> 
> Error in <TWinNTSystem::DynamicPathName>: ddl does not exist or wrong file
> extension (.dll)
> Error in <TWinNTSystem::DynamicPathName>: ddl does not exist or wrong file
> extension (.dll)
> Error: No symbol TGWin32 in current scope  FILE: LINE:0
> Error: Type TGWin32 not defined FILE: LINE:0
> Error: No symbol TWin32GuiFactory in current scope  FILE: LINE:0
> Error: Type TWin32GuiFactory not defined FILE: LINE:0
> 
> Then I get a popup error window with the message
> "This program has performed an illegal operation and will be shut down."
> 
> The dll files it is looking for are in the %ROOTSYS%\bin directory.  If I copy
> them to the tutorials directory before running root then everything works fine.
> However, I do not need to do this on an NT machine.  So there is some kind path
> definition problem that is specific to Windows 98 (probably 95 also).
> I already knew this.  What I am looking for is some solution that is better
> than having to copy all these dll files to whatever directory I happen to be in
> when I start up root.
> 
> Ray.
> 
> On Mon, 26 Feb 2001, Rene Brun wrote:
> 
> > Hi Ray,
> > Did you set the variables ROOTSYS,PATH, etc as described at:
> >      http://root.cern.ch/root/Version300.html
> > namely:
> >
> >
> >      When running from the MSDOS prompt, you must set the following environment
> > variables, eg in your autoexec.bat:
> >      (Restart the system if you set these variables for the first time).
> >
> >         set TEMP=c:\temp
> >         set HOME=c:\your top directory
> >         set TMPDIR=c:\temp
> >         set ROOTSYS=c:\root  (the directory where you installed Root)
> >         set PATH=%PATH%;%ROOTSYS%\bin
> >
> > Rene Brun
> >
> >
> > Raymond Beuselinck wrote:
> > >
> > > Hi,
> > >
> > > I searched in the roottalk archive for the problem I have encountered and I see
> > > that it has been discussed before, but there did not seem to be any clear
> > > resolution as far as I could see.
> > >
> > > I installed root version 2.25/03 on my NT desktop at work which seems to work
> > > fine if I set the ROOTSYS variable and add %ROOTSYS%\bin to my PATH.
> > >
> > > I installed exactly the same version on my laptop which is running Windows 98
> > > and find that root does not work correctly unless I am running it from the
> > > directory containing the binaries.  The problem is not in finding root.exe but
> > > in finding the .dll files which are in that directory.
> > >
> > > There was some discussion in roottalk about .rootrc files and setting the
> > > dynamic path correctly but I could not find a definitive answer to tell me how
> > > to make root work sensibly under win98, i.e.
> > >
> > > 1. What should the necessary configuration file be called ?
> > > 2. Which directory should it be in ?
> > > 3. What must it contain to be able to find the .dll files from anywhere ?
> > >
> > > The zip file containing the windows 95/98/NT version has a file called
> > > system.rootrc  (not just .rootrc)  located in the top level directory
> > > ( %ROOTSYS% ) which contains the following lines:
> > >
> > > # 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)/bin;$(PATH)
> > > WinNT.*.Root.MacroPath:     ./;$(ROOTSYS)/macros
> > >
> > > Should this work for Windows 98 ?  (I am not even certain that it is looked at
> > > by the root executable.)  If not, then how must I change it to make it work ?
> > > I should point out that I am also just beginning to try to learn how to use
> > > root so don't even have any past experience from other platforms to help me.
> > >
> > > Thanks for any help you can give.
> > >
> > > Ray Beuselinck,
> > > Imperial College, London.
> >



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:37 MET