X-Spam-Check-By: sourceware.org Message-ID: <468D4FE4.1030705@Gymel.com> Date: Thu, 05 Jul 2007 22:09:08 +0200 From: Thomas Berger Reply-To: thb AT Gymel DOT com User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Perl documentation inaccessible via 'perldoc'. References: <7634A226C4C245868140309A0F3A952F AT desktop2> <2kap83p6s5819lu66sr6kmrem6o5iqm180 AT 4ax DOT com> In-Reply-To: <2kap83p6s5819lu66sr6kmrem6o5iqm180@4ax.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Andrew Schulman wrote: >> >> Rob AT desktop2 /cygdrive/c/_32/working/math-gmpz/Math-GMPz-0.22 >> >> $ perldoc ExtUtils::MakeMaker >> >> Error in tempfile() using ./XXXXXXXXXX: Parent directory (./) is not >> >> writable >> >> at /usr/lib/perl5/5.8/Pod/Perldoc.pm line 1483 > > > > tempfile() is trying to create the tempfile in the current directory, > > rather than a standard temporary directory such as /tmp. 'perldoc > > File::Temp' says that if you don't specify a tempfile directory, tempfile() > > puts it in the location returned by File::Spec::tempdir(). Normally that > > should be /tmp. I wonder, do you have TMPDIR set? Try setting it, e.g. File::Spec identifies the OS as "cygwin" and accordingly File::Spec->tempdir() is File::Spec::Cygwin->tempdir() and tests $ENV{'TMPDIR'}, /tmp, and C:/temp in that order. Each of these will be tested for definedness, existence and writablity, so usually this yields an U**Xish "/tmp" under Cygwin. Only when neither of these three satisfies the restrictions, "." is returned (unchecked). It might be argued that $ENV{'TMPDIR'}, /tmp, $ENV{'TMP'}, $ENV{'TEMP'}, C:/temp might be a more appropriate list (since c:/temp usually is not world-writable on WinNT ff), but the difference would be only in the situation where Cygwin's /tmp is not writable, which IMO is undesirable anyway. Thomas Berger -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/