RE: [ROOT] windows: creates temfile in c:\

From: Bertrand Bellenot (bellenot_b@bluewin.ch)
Date: Wed Nov 03 2004 - 20:43:51 MET


Hi,

This problem comes from usage of tmpfile(), which create the temp file
in the root ( C:\ ) directory. 
To solve the problem, Root must be built with the flag G__TMPFILE
defined in the compiler options. 

HTH, cheers,
Bertrand.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch] On Behalf Of Christian Vogel
Sent: Wednesday, November 03, 2004 8:02 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] windows: creates temfile in c:\


Hi,

I just downloaded root 4.00/08[1], the recommended version,
and extracted it to c:\Program Files\root. I have set the environment
variables like that (confirmed with the "set" command):

HOME=c:\Documents and Settings\chris   (== %USERPROFILE)
TEMP, TMP, TMPDIR=c:\DOCUME~1\chris\LOCALS~1\Temp
ROOTSYS=c:\Program Files\root
PATH={way too much stuff};c:\Program Files\root\bin

now if I start rootn.exe it is found in my path but it complains about
not being able to write some files, and it crashes for example if I try
tab-completion ( for example: "gEnv->Print(<TAB>" ).

I found out that those files are created in C:\. If I make c:\ writeable
to the user running rootn.exe (by issuing cacls c:\ /e /g chris:F) it
works as expected, but of course that behaviour is not desireable.

Which environment variable does root look at when building temporary
filenames? Or is there some other cure for that problem?

	Chris

[1] ftp://root.cern.ch/root/root_v4.00.08.win32gdk.tar.gz


-- 
Mophobia, n.: Fear of being verbally abused by a Mississippian.



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET