http://www.perlmonks.org?node_id=972219


in reply to cpan problems

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.

Replies are listed 'Best First'.
Re^2: cpan problems
by errant.info (Initiate) on Oct 03, 2012 at 02:56 UTC

    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 [...]
Re^2: cpan problems
by Anonymous Monk on Nov 01, 2012 at 15:23 UTC
    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!

Re^2: cpan problems
by Anonymous Monk on Oct 12, 2013 at 12:52 UTC
    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^2: cpan problems
by mds (Novice) on Jun 05, 2013 at 18:40 UTC

    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 ?

Re^2: cpan problems
by Anonymous Monk on Dec 14, 2012 at 15:50 UTC
    That fixed the problem. Perfect answer.
Re^2: cpan problems
by Anonymous Monk on Jan 31, 2013 at 19:55 UTC
    Thank you, thank you, thank you.
Re^2: cpan problems
by Anonymous Monk on Jul 01, 2013 at 18:45 UTC
    Thanks a lot! Worked like charm. Saved me many hours in researching the issue.