perl version and upgrade questions

atsmark

Member
Mar 31, 2005
14
0
151
Hi, thanks in advance for any help.

My cpanel seems to be having some complaints due to a perl version issue. For example, quotas do not update with an error about the Version.pm module. (I tried installing that module, but I get errors that suggest I need to update Perl.)

When I type perl -v, I get 5.8.0.

However, I see a lot of stuff on my system for 5.8.7, for example many files abd modules under /home/cpins/installd/perl587installer.

Does this mean 5.8.7 is already installed, and I just need to point my /usr/bin/perl to it somehow?

Thanks again.

Mark
 

khoonchee

Well-Known Member
PartnerNOC
Oct 2, 2002
134
0
166
if you are still seeing 5.8.0, that means your server Perl is not updated to 5.8.7, perhaps you may try download the latest Perl update from Cpanel download page and apply it on your server:

[email protected] [/]# perl -v

This is perl, v5.8.7 built for i686-linux

Copyright 1987-2005, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
This happens if you haven't configured yum or up2date to exclude/skip perl upgrades. You can recover it by:

cd /usr/bin
cp perl5.8.7 perl
/scripts/rpmup
 

atsmark

Member
Mar 31, 2005
14
0
151
Thanks for the info. I had gone ahead and copied the new version of perl over the binary, which seemed a bit risky but worked fine.

What does /scripts/rpmup do?

How do I configure up2date to leave perl alone?

Mark
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
rpmup will make sure all the required perl modules and present and the correct version for cPanel to run.

If you're using up2date, then run:

up2date --config

Look for the pkgskiplst option (usually 9 or 20) and change it to:

Code:
kernel*;courier*;mysql*;spamassassin*;httpd*;perl;mysql*;php*;mod_ssl*;squirrelmail*;caching-nameserver*;exim*
If you're using yum, edit /etc/yum.conf and near the top add:

Code:
exclude=courier* mysql* spamassassin* httpd* perl mysql* php* mod_ssl* squirrelmail* caching-nameserver* exim*
 

atsmark

Member
Mar 31, 2005
14
0
151
I am using up2date. I did that, except it didn't seem to have room for that entire list so I trimmed it down a little. Hope that perserves what I'm running. Thanks again for your help. -Mark
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
You don't need to trim it, up2date only shows a part of the list, but if you paste in the whole thing it will store it correctly.