At 14:42 -0500 2001.03.27, dfrey(contr-ito) wrote:
>Hello. I'm fairly new to Perl and I'm trying to use CPAN to install a
>module. Right now I'm using the CPAN v1.57 that I downloaded from the
>MacIntosh porters page, and I'm getting a message saying there's a newer
>version available, try 'install Bundle::CPAN'. When I enter this command, I
>receive the error: "Can't call method "gzread" without a package or object
>reference. Archive::Tar.pm Line 274." Here's the line and some lines above
>and below:
>
>269 sub _read_tar {
>270 my ($file, $seekable, $extract) = @_;
>271 my $tarfile = [];
>272 my ($head, $offset, $size);
>273
>274 $file->gzread ($head, $tar_header_length)
>275 or goto &_drat;
>276
>277 if (substr ($head, 0, 2) =~ /$gzip_magic_number/o) {
>278 $error =
>280 "Compression not available\n";
>281 return undef;
>285 }
>.
>.
>.
>
>If anyone could tell me why this error is occurring and how to correct it,
>I'd appreciate it.
I am not sure; I do know you can't install Bundle::CPAN. Did you install
cpan-mac? If not, you need to. You need Compress::Zlib and more from that
(well, you could install everything individually). Also, note in the
cpan-mac README about not installing Bundles.
Maybe I should patch CPAN.pm to not print that message on MacOS.
--
Chris Nandor [EMAIL PROTECTED] http://pudge.net/
Open Source Development Network [EMAIL PROTECTED] http://osdn.com/