[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-Modules] make never works on CPAN-shell.plx



CPAN-mac fetches the file I need, but it will always break on the gzopen  stage. In most, but not all cases, dragging the file to "installme" will successfully install the module.

Here's an example:

>cpan> make URI
>Running make for GAAS/URI-1.04.tar.gz
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/id/GAAS/URI-1.04.tar.gz
>CPAN: MD5 loaded ok
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/id/GAAS/CHECKSUMS
># Could not gzopen :.cpan:sources:authors:id:GAAS:URI-1.04.tar.gz.
>File 'Internet 03:Programming:MacPerl Ÿ:site_perl:CPAN.pm'; Line 4207
>
>cpan>
 

This is CPAN.pm, around Line 4207 where it always breaks:
>
>sub gunzip {
>  my($class,$read,$write) = @_;
>  if ($CPAN::META->has_inst("Compress::Zlib")) {
>    my($buffer,$fhw);
>    $fhw = FileHandle->new(">$write")
>	or $CPAN::Frontend->mydie("Could not open >$write: $!");
>    my $gz = Compress::Zlib::gzopen($read, "rb")
>	or $CPAN::Frontend->mydie("Cannot gzopen $read: $!\n"); 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Line 4207
>    $fhw->print($buffer)
>	while $gz->gzread($buffer) > 0 ;
>    $CPAN::Frontend->mydie("Error reading from $read: $!\n")
>	if $gz->gzerror != Compress::Zlib::Z_STREAM_END();
>    $gz->gzclose() ;
>    $fhw->close;
>    return 1;

Anyone else have this or know why it occurs?

I think I have roughly the latest everything, except the IO modules, which crash CPAN-mac, and a couple things that wouldn't build. I did a normal, recommended install of MacPerl 5 and the MPW perl tool.


FOR REFERENCE, BELOW IS THE TRANSCRIPT OF MY WHOLE CPAN SESSION:

===============================================================
>
>
>cpan shell -- CPAN exploration and modules installation (v1.50)
>ReadLine support available (try ``install Bundle::CPAN'')
>
>cpan> r
>CPAN: LWP::UserAgent loaded ok
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/01mailrc.txt.gz
># Use of uninitialized value.
>File 'Internet 03:Programming:MacPerl Ÿ:site_perl:Mac:Types.pm'; Line 56
>Going to read :.cpan:sources:authors:01mailrc.txt.gz
>CPAN: Compress::Zlib loaded ok
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/modules/02packages.details.txt.gz
>Going to read :.cpan:sources:modules:02packages.details.txt.gz
>Scanning cache :.cpan:build for sizes
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/modules/03modlist.data.gz
>Fetching with Net::FTP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/modules/03modlist.data.gz
># Use of uninitialized value.
>File 'Internet 03:Programming:MacPerl Ÿ:site_perl:CPAN.pm'; Line 1805
># Use of uninitialized value.
>File 'Internet 03:Programming:MacPerl Ÿ:site_perl:Net:FTP.pm'; Line 236
>Going to read :.cpan:sources:modules:03modlist.data.gz
>
>Package namespace         installed    latest  in CPAN file
>AutoLoader                    undef      5.56  CHIPS/perl5.004_05.tar.gz
>Digest::MD5                    2.07      2.08  GAAS/Digest-MD5-2.08.tar.gz
>ExtUtils::MakeMaker          5.4002    5.4302  GBARR/perl5.005_03.tar.gz
>Getopt::Long                   1.04      2.19  JV/GetoptLong-2.19.tar.gz
>IO::File                     1.0602      1.08  GBARR/IO-1.20.tar.gz
>IO::Tee                       undef      0.63  KENSHAN/IO-Tee-0.63.tar.gz
>URI                            1.03      1.04  GAAS/URI-1.04.tar.gz
>135 installed modules have no parseable version number
>
>cpan> make URI
>Running make for GAAS/URI-1.04.tar.gz
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/id/GAAS/URI-1.04.tar.gz
>CPAN: MD5 loaded ok
>Fetching with LWP:
>  ftp://cpan.nas.nasa.gov/pub/perl/CPAN/authors/id/GAAS/CHECKSUMS
># Could not gzopen :.cpan:sources:authors:id:GAAS:URI-1.04.tar.gz.
>File 'Internet 03:Programming:MacPerl Ÿ:site_perl:CPAN.pm'; Line 4207
>
>cpan> 

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-modules-request@macperl.org