Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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/CPAN.pm 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/Zlib.pm line 9 BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/ +Compress/Zlib.pm 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2019-12-07 19:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (162 votes). Check out past polls.

    Notices?