How to update perl?

Discussion in 'Linux VPS/Dedicated - cPanel' started by SonicGT, Aug 31, 2007.

  1. SonicGT

    SonicGT New Member

    I keep getting emails from cpanel telling me my perl 5.8.7 is too old. It has manual instructions to update it appears, but wondering if there is an easy way in cpanel to get it up to date.

    Here is what it tells me to run
    perl -MCPAN -e 'autobundle'
    cd /root
    wget http://layer1.cpanel.net/perl588installer.tar.gz
    tar -zxf perl588installer.tar.gz
    cd perl588installer
    ./install

    which im fine with, but if cpanel can do it itself, I'd rather stay consistant with that.
     
  2. Jleagle

    Jleagle New Member

    I got this email today too, my first.


     
  3. khiltd

    khiltd New Member

    Most of cPanel is written in Perl so I don't imagine it's going to be able to update the interpreter it requires to run.
     
  4. SonicGT

    SonicGT New Member

    well I followed the instructions in the email as listed in post 2, everything seemed to work except when it asked for my path to the apache source files, I couldn't find where they were stored or if they existed, so I just entered q and hit ok, then it continued on. Everything seems to be working and perl -v now shows 5.8.8
     
  5. brushwoodnursery

    brushwoodnursery New Member

    Me, too. So, how urgent is this? I'm not planning to install anything new and I'm not comfortable in the shell. Is it something KH will take care of and just hasn't gotten to our bank of servers yet?
    I've only been on VPS for about 6 months. Am I going to have to get to know how to upgrade/update software regularly?
    I'm an amateur tech-head so it doesn't really scare me. I'd just rather do this in a month when my ecommerce settles down (after the growing season closes).
     
  6. khiltd

    khiltd New Member

    That's generally the idea with dedicated and VPS accounts anywhere.
     
  7. magic

    magic New Member

    since this is a cpanel issue support should be able to help you out

    however of course it is better to do it yourself so you learn how it works
     
  8. kubel

    kubel New Member

    I updated according to the server alert, and now I'm getting continuous server alerts saying a module has failed:

    This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:
    Test Run
    ==============
    IO::Compress::Base version 2.006 required--this is only version 2.005 at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/RawDeflate.pm line 10.
    Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/IO/Compress/Gzip.pm line 11.
    Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Compress/Zlib.pm line 13.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Compress/Zlib.pm line 13.
    Compilation failed in require at /usr/lib/perl5/site_perl/5.8.7/Archive/Zip.pm line 24.
    BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.7/Archive/Zip.pm line 24.
    Compilation failed in require at - line 1.
    BEGIN failed--compilation aborted at - line 1.

    Installer Run
    ==============
    Fetching CPAN timestamp...Done
    Testing connection speed...(this could take a while)...Done
    Ping:2.898 Testing connection speed to cpan.belfry.net using pureperl...(157450.00 bytes/s)...Done
    Ping:2.435 Testing connection speed to cpan.glines.org using pureperl...(156550.00 bytes/s)...Done
    Three usable mirrors located
    Mirror Check passed for cpan.belfry.net (/index.html)
    Unknown config variable 'less'
    commit: wrote '/usr/lib/perl5/5.8.8/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, 01 Sep 2007 23:36:41 GMT
    Running install for module 'Archive::Zip'
    Running make for A/AD/ADAMK/Archive-Zip-1.20.tar.gz
    CPAN: Digest::SHA loaded ok (v5.45)
    Checksum for /home/.cpan/sources/authors/id/A/AD/ADAMK/Archive-Zip-1.20.tar.gz ok
    CPAN: Compress::Zlib loaded ok (v2.001)
    Can't locate object method "new" via package "IO::Uncompress::Gunzip" at /usr/lib/perl5/site_perl/5.8.7/Compress/Zlib.pm line 140.
    My advice is to let KH support handle the update by issuing a support ticket.
     
  9. khiltd

    khiltd New Member

    Sounds like somebody either forgot a dependency in their build/update script or a download was interrupted at some point.
     
  10. Dan

    Dan Moderator

    Howdy!

    I followed the instructions in this post at the CPanel forums. I'll C&P the steps here:

    1) wget http://layer1.cpanel.net/perl588installer.tar.gz
    2) tar xfvz perl588installer.tar.gz
    3) cd perl588installer
    4) ./install
    5) /usr/local/cpanel/bin/checkperlmodules

    There is also a newer post regarding upgrading Perl and problems people have had too so if you're having troubles you might like to look there.
     
  11. SonicGT

    SonicGT New Member

    I am getting the same warnings with perl modules gzip and gunzip.
     
  12. Tru2Chevy

    Tru2Chevy New Member

    I'm getting the same emails, I guess I'll have to follow the instructions and see how I do.

    - Justin
     
  13. Dan

    Dan Moderator

    There's a sticky regarding this problem here in our forum.

    I let this problem sit overnight to see if it came up again and it didn't so thought it was fixed. I'm going to run this now to be sure though.
     
  14. SonicGT

    SonicGT New Member

    I followed some of the suggestions and fix's over at the cpanel forums

    Did this to update compression modules

    Code:
    wget http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Base-2.006.tar.gz
    tar xfzv IO-Compress-Base-2.006.tar.gz
    cd IO-Compress-Base-2.006
    perl Makefile.PL
    make
    make install
    
    Then ran /usr/local/cpanel/bin/checkperlmodules

    and I seem to be running fine now
     
  15. diggity

    diggity New Member

    Well I always like to try and learn these things but have hit a problem :(

    I've followed the instructions above, and it seems that the update has installed correctly. When I check the Perl version from within SSH it correctly shows the version as being V5.8.8.

    However when I log into a cpanel, it still shows V5.8.7, Arghhhhhhhhh

    I've spent three hours on this now, rebooting and googling for solutions but it just aint happening!. Everything else seems okay though, at least its still online!

    *Hits head against Wall*
     
  16. khiltd

    khiltd New Member

    It's probably just cached somewhere.
     
  17. Shaktur

    Shaktur New Member

    5.8.8 showing up as 5.8.7 in cPanel

    I had the same problem. Updated perl to 5.8.8, but cPanel still showed 5.8.7. I found the fix in this post,
    forums.cpanel.net/showthread.php?t=64738

    It looks like ther versions are cached for some reason. I just deleted the cached file(s) and the new version showed up in cPanel.

    rm -f /home/*/.cpanel-datastore/_usr_bin_perl_-v
    rm -f /home/*/.cpanel/datastore/_usr_bin_perl_-v

    Notice the 2 different file locations. My files were in .cpanel/datastore. I think the .cpanel-datastore was the old location.
     
  18. Dan

    Dan Moderator

    Yes the data that is displayed there is cached and will refresh after an amount of time.

    You can check it using perl -V and the info shown in CPanel will sort itself in a bit.
     

Share This Page