Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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:

Hi,

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/Base.pm 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.

Comment on cpan problems
Download Code
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 toolic (Chancellor) 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 sam_bakki (Monk) 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 http://search.cpan.org/~pevans/Scalar-List-Utils-1.25/lib/Scalar/Util.pm
      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 - http://code.google.com/p/saaral-soft-search-spider/ , 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/XSLoader.pm 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!

      That fixed the problem. Perfect answer.
      Thank you, thank you, 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/Base.pm line 1075.

      was caused by a bad Scalar::Util module ?

      Thanks a lot! Worked like charm. Saved me many hours in researching the issue.
      Not found: search.cpan.org/~pevans/Scalar-List-Utils-1.25/lib/Scalar/Util.pm

        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.

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

      Cheers.
      Steveh
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... http://search.cpan.org/dist/Scalar-List-Utils/ 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-08-02 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (53 votes), past polls