delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/22/14:40:28

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Luffe <dogo AT luukku DOT com>
Subject: Re: Installing Perl modules with
Date: Mon, 22 May 2006 18:37:26 +0000 (UTC)
Lines: 46
Message-ID: <loom.20060522T201721-786@post.gmane.org>
References: <421F0A9C DOT 7050308 AT gtt-technologies DOT de> <49407.1882254959$1109379585 AT news DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Hello all,

Short solution: install cygwin-provided wget and change CPAN setting to 
use /usr/bin/wget, not Windows native wget.exe.

To recap:

David Christensen <dpchrist <at> holgerdanske.com> writes:
: Stephan Petersen wrote:
: :::Please check the validity of the index file by comparing it to more
: :::than one CPAN mirror.
: :: Have you tried this?  E.g. configured CPAN to use another mirror and
: :: tried again?
: : yes, it's the same for every CPAN mirror I've tried. I've deleted
: : CPAN's config.pm and my .cpan directory several times now, it's the
: : same after every reconfiguration.
: : Testing 02packages.details.txt.gz with gzip -t reports:
: : gzip: 02packages.details.txt.gz: invalid compressed data--format
: : violated
: : Same with 03modlist.data.gz.
: : I'm using cygwin on W2k with default text file type "DOS", in case
: : that's relevant.
: 
: Hmmm...  I dunno.  I run Win XP Pro with Cygwin in DOS mode, and my CPAN seems
: to work.  It also worked when I ran Win2k Pro.

Long:

Another thread at http://www.cygwin.com/ml/cygwin/2005-02/msg00756.html speaks 
about trying other protocols (in case proxy/firewall screws up things in 
between) and ensuring that mounts are in binmode (type 'mount' to see things 
like  c:\cygwin\home\username\.cpan on /home/username/.cpan type system 
(binmode) ). 

After I checked these things, reinstalled gzip/zlib and wondered why even 
WinRAR can't see proper files, I thought that the download application (wget) 
is screwed. I checked the cpan.PM but changes to wget options would not help. 
So only then it dawned on me that the _native Windows_ wget.exe (GNU Wget 
1.9.1) which I had in c:\windows\system32 does not work with Cygwin. It just 
doesn't do the right thing with Cygwin when doing -O - (to output downloaded 
file to stdout). So, solution: run Cygwin setup and install cygwin-provided 
wget. Then 'perl -MCPAN -e shell', o conf defaults, o conf init and give it new 
path to wget (/usr/bin/wget).


Cheers.


--
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/

- Raw text -


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