This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Installing Perl modules with "perl -MCPAN -e shell;" fails with "02packages.details.txt.gz does not contain a Line-Count header"
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 25 Feb 2005 17:21:57 -0800
- Subject: Re: Installing Perl modules with "perl -MCPAN -e shell;" fails with "02packages.details.txt.gz does not contain a Line-Count header"
- Organization: My own little world...
- References: <0MKpV6-1D4XMu3JLa-0001jh@mxeu1.kundenserver.de> <421F1B6A.10707@gtt-technologies.de>
- Reply-to: cygwin at cygwin dot com
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.
If you're using ftp mirrors try using a http mirror. It could be that
some kind of gateway, proxy, or firewall sees ".txt" in the filename and
uses ascii mode for the ftp session, instead of binary. As an
experiment, try getting both of the following links and see if one is
corrupt and the other not:
ftp://mirrors.kernel.org/pub/CPAN/modules/02packages.details.txt.gz
http://mirrors.kernel.org/pub/CPAN/modules/02packages.details.txt.gz
If there is a difference then switch to using a http mirror, or change
the ftp client that perl/cpan is using (e.g. Net::FTP, wget, curl, lftp,
etc.)
Brian
--
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/