delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/27/22:20:17

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Unable to use cpan
Date: Thu, 27 Aug 2009 19:18:02 -0700
Lines: 54
Message-ID: <h77eoq$nbh$2@ger.gmane.org>
References: <h6it8k$b9n$1 AT ger DOT gmane DOT org> <00c101ca21ac$76c194d0$6444be70$@com> <h6jsb4$di2$1 AT ger DOT gmane DOT org> <6910a60908220737n66b450b0pac7b1e67d7aa59f8 AT mail DOT gmail DOT com> <h6p3cm$rvj$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
In-Reply-To: <h6p3cm$rvj$1@ger.gmane.org>
X-Stationery: 0.4.10
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 DeFaria wrote:
> Reini Urban wrote:
>> 2009/8/20 Andrew DeFaria:
>>> Huh? It's not a permissions problem, it's a file naming problem. 
>>> Removing the /home/p6258c/.cpan/modules to make this simpler, the 
>>> error message is saying it is unable to rename 
>>> 03modlist.data.*gz*.tmp3996 because there is no such file or 
>>> directory. The error message is right - there is no file by that 
>>> name. There is, however, a file by the name of 
>>> 03modlist.data.tmp3669.*gz*. Note the placement of the letters "gz" 
>>> - highlighted by surrounding it with "*"'s (that are not in the 
>>> filename nor the error message). Of course mv will not work when you 
>>> use the wrong file name. The question is why is cpan(1) using the 
>>> wrong file name? Or is it ncftpget which gets it wrong? I don't 
>>> know. All I know is that it just doesn't work...
>> Looks like your download client (ncftp) misnames the output name. I 
>> use wget successfully with the proxy settings at work. LWP should 
>> also be able to use a proxy.
> I would think that ncftp would only name a file that which it was told 
> to name a file. Do you know of any way to turn on tracing of some sort 
> to see more of what is going on under the hood?
>
> Thanks for the ideas of trying to set proxy info for other methods 
> such as wget and LWP. I thought I did try setting that before. Any 
> pointers on how you do set that proxy info?
Figured out my problem with getting stuff from the net - seems the cpan 
parameters were overriding my http_proxy and ftp_proxy environment 
settings. Now I have curl working correctly and I am downloading things.

Meantime, I get the following problem:

$ cpan Algorithm::Diff
...
Running make install
Prepending 
/home/p6258c/.cpan/build/Algorithm-Diff-1.1902-7kZkOA/blib/arch 
/home/p6258c/.cpan/build/Algorithm-Diff-1.1902-7kZkOA/blib/lib 
/home/p6258c/.cpan/build/CPAN-1.9402-SZbdyV/blib/arch 
/home/p6258c/.cpan/build/CPAN-1.9402-SZbdyV/blib/lib to PERL5LIB for 
'install'
Use of uninitialized value $pipe in <HANDLE> at 
/usr/lib/perl5/5.10/CPAN.pm line 8981.
readline() on unopened filehandle at /usr/lib/perl5/5.10/CPAN.pm line 8981.
Catching error: 'Can\'t call method "close" on an undefined value at 
/usr/lib/perl5/5.10/CPAN.pm line 8987.
' at /usr/lib/perl5/5.10/CPAN.pm line 281
        CPAN::shell() called at /bin/cpan line 198

cpan[8]>

Any ideas?
-- 
Andrew DeFaria <http://defaria.com>
Windows: Just another pane in the glass.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019