Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Problem with CPAN shell and Compress::Zlib on Fedora 8

by amir_e_a (Hermit)
on Feb 26, 2008 at 13:50 UTC ( #670299=perlquestion: print w/replies, xml ) Need Help??

amir_e_a has asked for the wisdom of the Perl Monks concerning the following question:

I'm running on Fedora 8 with all patches. I'm trying to use the CPAN shell to install modules and nothing works.

I get this error when i try to install any module:

Undefined subroutine &Compress::Zlib::gzopen called at /usr/lib/perl5/ +5.8 .8/ line 5721.

CPAN shell used to work on this machine and i suspect that a recent perl update ruined it.

I believe that i do have Compress::Zlib installed, although it is installed as a Fedora package and might be screwed-up.

Running perl -e "use Compress::Zlib" gives this:

is only avaliable with the XS version at /usr/lib/perl5/vendor_perl/5 +.8.8/Compress/ line 9 BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ +Compress/ line 9. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.

(Notice one space in the beginning of the first line, as if some string is missing there.) o conf gzip in the CPAN shell has the expected value of /usr/bin/gzip

Any ideas?

Replies are listed 'Best First'.
Re: Problem with CPAN shell and Compress::Zlib on Fedora 8
by almut (Canon) on Feb 26, 2008 at 14:12 UTC

    The curious error message is the result of a known issue with Scalar::Util described here.

    Update: I would try force install Scalar::Util (from the cpan shell) — maybe the Perl update for whatever reason installed the non-XS version...

    Update 2: ...sorry, forgot that it's your cpan shell which isn't working :)  so you'll probably want to install the module the manual way, i.e. perl Makefile.PL && make install

    Update 3: (last update, promised!)   Maybe it has to do with this bug...

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://670299]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2023-03-24 19:13 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (61 votes). Check out past polls.