The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

"[checkperlmodules] perl version too old..." But perl -v shows 5.8.8

Discussion in 'General Discussion' started by orty, Nov 11, 2007.

  1. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    I've gotten a few emails from one of my Cent OS 4.5 servers stating that my perl version was out of date (despite the fact that I installed 5.8.8 a while ago). I found this thread, and made sure the "Allow Perl updates from RPM based linux vendors" was unchecked (it is now) but I run "perl -v" from the command line and it shows that it's 5.8.8.

    Well, I figured, there must be some library or something that's still triggering this warning, so I decided to try following the directions in the email to upgrade Perl. I ran this:

    perl -MCPAN -e 'autobundle'

    And quickly got this:

    Code:
    Can't locate Config.pm in @INC (@INC contains: no /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.8/CPAN.pm line 12.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/CPAN.pm line 12.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    
    Well that's terrific. I can't find config.pm in any of those locations.

    I'm thinking I need to just reinstall perl, but I don't want to have to reinstall all those libraries if I don't have to (which is why the autobundle would be nice). Is there any way to do this or have config.pm recreated? Perl wizard I is not :)

    -Jake
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Run the following command to force the installation of a Perl moduel, like:
    /scripts/perlinstaller --force Config
     
  3. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    That didn't quite work out right:
    Code:
     /scripts/perlinstaller --force Config
    Method: System Expect
    spawn /scripts/realperlinstaller --force Config
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:3.758 Testing connection speed to cpan.belfry.net using pureperl...(157450.00 bytes/s)...Done
    Ping:3.773 Testing connection speed to cpan.erlbaum.net using pureperl...(157450.00 bytes/s)...Done
    Ping:23.117 Testing connection speed to httpupdate.cpanel.net using pureperl...(156250.00 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for cpan.erlbaum.net (/index.html)
    Unknown config variable 'less'
    commit: wrote '/usr/lib/perl5/5.8.5/CPAN/Config.pm'
    CPAN: File::HomeDir loaded ok (v0.66)
    CPAN: Storable loaded ok (v2.16)
    Going to read /home/.cpan/Metadata
      Database was generated on Sat, 10 Nov 2007 22:36:34 GMT
    Running install for module 'Config'
    
      The module Config isn't available on CPAN.
    
      Either the module has not yet been uploaded to CPAN, or it is
      temporary unavailable. Please contact the author to find out
      more about the status. Try 'i Config'.
    
    So I tried running the auto bundle command again, and got this:
    Code:
    Can't locate Cwd.pm in @INC (@INC contains: no /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.8/CPAN.pm line 13.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    
    So I tried /scripts/perlinstaller --force Cwd, and then ran the bundle command again, and got the same error about cwd.pm missing.

    Any other ideas?
     
  4. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Re-install Perl v5.8.8 using the following instructions: http://servertune.com/kbase/entry/132/ and then force install the missing modules.
     
  5. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    Those are the same instructions in the original email that said I should upgrade to 5.8.8 (which I thought I already had) -- but I'm just hoping to get a list of currently installed libraries so I won't have to reinstall custom libraries that I may have installed over the years. Is there a way to get that list (which is why I was trying the autobundle command above).

    -Jake
     
  6. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    Sure :) Run this command to list PERL modules installed on your server:

    Code:
    for n in `perl -e'print join "\n", @INC'`; do ls -1 $n | grep .pm ; done
     
  7. orty

    orty Well-Known Member

    Joined:
    Jun 29, 2004
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bend, Oregon
    cPanel Access Level:
    Root Administrator
    That doesn't quite get everything, from what I can tell, as it's totally missing some stuff that I know is required for a couple client's scripts on my server (MovableType, for example), but since MovableType works fine, I'm assuming it's just not picking it up (Image::Magick, for example).

    Is there any other way to get a full run as to what's installed? And, out of curiousity, why would perl -v show that 5.8.8 is installed, but various perl scripts I have installed see 5.8.5?

    I think I'm just going to run the upgrade and see what happens. Thanks again for all your help!

    -Jake
     
  8. doejohn6969

    doejohn6969 Registered

    Joined:
    Oct 7, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page