Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

cpan problems

by themoops (Initiate)
on Apr 18, 2012 at 05:58 UTC ( #965635=perlquestion: print w/replies, xml ) Need Help??
themoops has asked for the wisdom of the Perl Monks concerning the following question:


I had a problem with a module, so I go to cpan

So I type "i File::Path"

and I get this:

CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 09 Apr 2012 17:10:35 GMT Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Undefined subroutine &IO::Uncompress::Base::readonly called at /usr/li +b/perl5/site_perl/5.8.8/IO/Uncompress/ line 1075.

This is on centos 5, I did some updates, and it seems to have screwed some perl stuff up.

Any ideas what's wrong? Thanks.

Replies are listed 'Best First'.
Re: cpan problems
by Khen1950fx (Canon) on Apr 18, 2012 at 07:14 UTC
    IO::Uncompress::Base is core and was first released with perl-5.9.4. If your version is less than that, then you'll have to install it. In the CPAN shell:
    cpan> install Bundle::Compress::Zlib
    or as a last resort:
    cpan> install Bundle::Compress::Zlib IO::Uncompress::Base
Re: cpan problems
by sam_bakki (Pilgrim) on May 24, 2012 at 10:57 UTC

    Hi themoops

    I also faced same issue today and just solved it.

    issue is with Scalar::Util perl module. Looks like CentOS update installs older version of Scalar::Util module. So perl could not load this module.

    To Solve this issue,

      Download Scalar::Utils sources from
      1. extract .tar.gz file and cd Scalar-List-Utils-1.25
      2. perl Makefile.PL
      3. gmake
      4. gmake test
      5. gmake install

      Once you complete this successfully,
      perl -MCPAN -e 'shell'
      works fine and I could install modules.

      Thanks & Regards,
      Bakkiaraj M
      My Perl Gtk2 technology demo project - , contributions are welcome.

      Spot on Bakkiaraj, thanks!

      I was receiving the following error when attempting to execute some code, and your solution resolved the situation. BTW I'm running RHEL - 2.6.18-238.19.1.el5.
      List::Util object version 1.21 does not match bootstrap parameter 1.25 + at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/ line + 94. Compilation failed [...]
      Your message probably saved me hundreds of dollars in customer orders that would have been lost because my scripts started breaking after yum reinstalled Perl 5.8.8 overnight on my CentOS managed cloud server. Rackspace Support helped me scope out the problem, and we found your message on Google. It provided the exact solution to the problem.

      THANK YOU!

      Bakkiaraj, Thank you for the post. That saved me a lot of time. How did you figure out that this problem:

      Database was generated on Mon, 09 Apr 2012 17:10:35 GMT Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Undefined subroutine &IO::Uncompress::Base::readonly called at /usr/li +b/perl5/site_perl/5.8.8/IO/Uncompress/ line 1075.

      was caused by a bad Scalar::Util module ?

      Not found:

        The version number in that link has increased. Either use a Google search to find the current URL or use the [dist://] form of URLs to create a link to whatever version is current, like Scalar::List::Utils.

      That fixed the problem. Perfect answer.
      Thank you, thank you, thank you.
      Thanks a lot! Worked like charm. Saved me many hours in researching the issue.
Re: cpan problems
by toolic (Bishop) on Apr 18, 2012 at 17:01 UTC
    According to corelist, File::Path is part of the Core distribution, which means there should be no need to install it:
    corelist File::Path File::Path was first released with perl 5.001
Re: cpan problems
by Anonymous Monk on Nov 08, 2012 at 21:36 UTC
    This worked on RedHat 5 (Linux <snip> 2.6.18-308.16.1.el5 #1 SMP. CPAN broke after a yum update. Your fix resolved the issue. Thank you!
      Thanks for posting Bakkiaraj M

      Fixed on Centos 5.8 x64

Re: cpan problems
by Anonymous Monk on Apr 30, 2013 at 04:56 UTC
    And apparently this is still a problem. Thank you for posting saved me a huge amount of time.
      Yep screwed up 2 of my servers this week :-/
Re: cpan problems
by Anonymous Monk on Aug 20, 2013 at 00:50 UTC
    You will need to download at a different location now... This fixed my issues... KD.
      Thanks so much. Peer1 updated my server again (I asked them to just email me so I can do it manually), and a bunch of my perl scripts crashed. This fixed it immediately!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2019-04-25 02:18 GMT
Find Nodes?
    Voting Booth?
    I am most likely to install a new module from CPAN if:

    Results (124 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!