Click here to get back home

Re: Perldoc error: "Could not create temp file"

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Re: Perldoc error: "Could not create temp file" Juan Manuel Guerrero 04-18-2008
Get Chitika Premium
Posted by Juan Manuel Guerrero on April 18, 2008, 9:12 am
Please log in for more thread options
OFYI:
The error reported can not be reproduced by me on the
systems that are available to me.

The perl 5.8.8 port works flawlessly on the following
operating systems:
1) MSDOS 6.22 (SFN)
2) Win98SE (SFN)
3) Win98SE (LFN)
4) WinXP (home) SP2 (LFN)

It fails and will continue to failing in the future
because I have no intentions to fix it:
1) WinXP (home) SP2 (SFN)

The reason for this failure is that AFAIK there is
no way to inhibit the generation of numeric tails
for short file names. This means that a long file
name like this:
longfilename.extension
has a short file name alias that looks like this:
longfi~1.ext
and this will not be found by perl or any other djgpp
program. On Win98 there is always the possibility to
disable the numeric tail generation so that:
longfilename.extension
is cleanly truncated to 8.3 and becomes:
longfile.ext
The OS will truncated in this way the long file name
passed by the application (perl) and looks for the file
with the truncated name and will find it.
If the long file name is not truncated in this way to the
8.3 length but changed by the OS like this
longfi~1.ext
the application will never find the file.
To be able to run djgpp applications with an OS that
generates numeric tails for the SFN aliases almost the
complete stdio of the application must be replaced and
I have not the time to do that.
IMHO there is no reason to use SFN where LFN support is
available.
In conclusion; *no one* of the ports I have produced is
able to run in SFN environments that use numeric tails.
I have never added djgpp specific code that is able to
handle SFN with numeric tails and that is started if
the file can not be found using the long file name.


Anyway all this does not explain the failure that has been
reported. On my WinXP box I have set LFN=n in djgpp.env
and started bash. I started the command:
perldoc perl
and got the following output:


perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LC_ALL = (unset),
        LANG = "de"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't locate File/Spec/Functions.pm in @INC (@INC contains: /dev/env/
DJDIR/lib/perl5 /dev/env/DJDIR/lib/perl5/site /dev/env/DJDIR/lib/perl5/
site /dev/env/DJDIR/lib/perl5/site .) at /dev/env/DJDIR/lib/perl5/Pod/
Perldoc.pm line 10.
BEGIN failed--compilation aborted at /dev/env/DJDIR/lib/perl5/Pod/
Perldoc.pm line 10.
Compilation failed in require at c:/djgpp/bin/perldoc line 9.
BEGIN failed--compilation aborted at c:/djgpp/bin/perldoc line 9.


The application fails before it reaches the point where the
temporary file is created. The applications is not even
capable to start because it can not load the required
modules. This is due the numeric tails in the file and
directory names.

Regards,
Juan M. Guerrero

Posted by Robbie Hatley on April 18, 2008, 7:35 pm
Please log in for more thread options

Juan Manuel Guerrero wrote:

> (reports of successes and failures on MSDOS, Win98,
> and WinXP)

Thanks for the information, but I don't use those OSs.
All the computers I use both at home and at work run
Microsoft Windows 2000 Professional. (IMO, the only
"good" OS Microsoft ever made.)

Djgpp works fine for me on Win2K machines, with the
exception of the documentation for Perl 5.8.8, all of
which (perldoc, info, man) is broken and useless.
(Perldoc.pm crashes w complaints of not being able to
write temporary files; and the man pages cause ntvdm.exe
to crash w "illegal memory access" if you try to read
them. As for the info pages, there aren't any.)

I don't know if this is true on all Win2K machines,
but it's true on the 2 machines I've tried so far.
Unknown if it's fixable at this point; I'm still
struggling with it.

--
Cheers,
Robbie Hatley
lonewolf aatt well dott com
www dott well dott com slant user slant lonewolf slant



Posted by A. Sinan Unur on April 18, 2008, 8:41 pm
Please log in for more thread options

> Juan Manuel Guerrero wrote:
>
>> (reports of successes and failures on MSDOS, Win98,
>> and WinXP)
>
> Thanks for the information, but I don't use those OSs.
> All the computers I use both at home and at work run
> Microsoft Windows 2000 Professional. (IMO, the only
> "good" OS Microsoft ever made.)

Opinions vary on that ;-)

I'll give it a shot on my office computer on Monday.

Incidentally, could you tell me the service pack level for your
Win2K installation?

> Djgpp

Not to start another flamewar over names, but I don't think DJ
appreciates his name being mangled like that.

http://www.delorie.com/users/dj/

Sinan
--
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/

Posted by Ben Bullock on April 18, 2008, 9:52 pm
Please log in for more thread options
On Sat, 19 Apr 2008 00:41:44 +0000, A. Sinan Unur wrote:

> Not to start another flamewar over names, but I don't think DJ
> appreciates his name being mangled like that.
>
> http://www.delorie.com/users/dj/

That made me laugh, because it says "It is not correct to insert a space
between the D and the J, or to put periods after them as if they were
initials, or to make either of them lower case" but the title of the page
is "dj delorie" in lower case, and the top graphical bar also says "dj
delorie" in lower case.

Posted by A. Sinan Unur on April 18, 2008, 10:05 pm
Please log in for more thread options

> On Sat, 19 Apr 2008 00:41:44 +0000, A. Sinan Unur wrote:
>
>> Not to start another flamewar over names, but I don't think DJ
>> appreciates his name being mangled like that.
>>
>> http://www.delorie.com/users/dj/
>
> That made me laugh, because it says "It is not correct to insert a
> space between the D and the J, or to put periods after them as if
> they were initials, or to make either of them lower case" but the
> title of the page is "dj delorie" in lower case, and the top
> graphical bar also says "dj delorie" in lower case.

But in that case *both* of them are in lower case (i.e. Guttman-
style is OK ;-)

IIRC from my days on comp.os.msdos.djgpp, it is OK to refer to DJGPP
as djgpp but it is not OK to use DjGPP, dJGPP, Djgpp etc.

Sinan

--
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/

Similar ThreadsPosted
Re: Perldoc error: "Could not create temp file" April 17, 2008, 3:45 pm
PPM installation error - Couldn't open file c:\temp/modulename/ for writing January 3, 2006, 1:00 pm
Bug? File::Temp messing with @INC July 14, 2005, 11:21 am
FAQ 5.33: Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? December 12, 2004, 12:03 am
FAQ 5.33 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? February 8, 2005, 12:03 am
FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? April 25, 2005, 5:03 pm
FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? July 11, 2005, 4:03 pm
FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? September 26, 2005, 10:03 am
FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? December 3, 2005, 5:03 am
FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? December 19, 2005, 5:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap