I have never had any problem with RHEL5 perl updates breaking Scalar::Util, but I do keep a separate File::Temp package installed outside of the perl package:

# locate File/Temp.pm
/usr/lib/perl5/5.8.8/File/Temp.pm
/usr/lib/perl5/vendor_perl/5.8.8/File/Temp.pm

# rpm -qf /usr/lib/perl5/5.8.8/File/Temp.pm /usr/lib/perl5/vendor_perl/5.8.8/File/Temp.pm
perl-5.8.8-32.el5_5.1.x86_64
perl-File-Temp-0.20-1.rhel5.noarch

My whole rt install is not done with CPAN, but with rpms that I mostly got from EPEL, Fedora and a few odd ones, like perl-File-Temp from DAG. I find this a lot easier than having CPAN and rpm fight each other over package updates. From a sysadmin point of view, I like having everything installed via rpms.

~Jason


On 12/29/2010 11:56 AM, James Moseley wrote:
The breaking of File::Temp and Scalar::Util after upgrading Perl on Red
Hat-based systems has been discussed quite a few times over the years.
With Scalar::Util, the version installed by the upgrade is up to date,
but how it's compiled by the package maintainers is the issue.

--
James Moseley

On Dec 29, 2010, at 8:57 AM, Kurt Engle <[email protected]
<mailto:[email protected]>> wrote:

Hit it right on the head.

Ran the force install Scalar::Util and all is well.

How did you know that this was the issue?

Kurt Engle
Network Engineer
4J Schools


------------------------------------------------------------------------
*From: *"James Moseley" <[email protected]
<mailto:[email protected]>>
*To: *"Kurt Engle" <[email protected] <mailto:[email protected]>>
*Cc: *"rt-users" <[email protected]
<mailto:[email protected]>>
*Sent: *Tuesday, December 28, 2010 5:05:35 PM
*Subject: *Re: [rt-users] File::Temp

More than likely, the upgrade broke the Scalar::Util perl module. From
a CPAN prompt, do:

force install Scalar::Util

This should reinstall the Scalar::Util perl module over what the
Redhat upgrade just installed...

--
James Moseley


On Tue, Dec 28, 2010 at 6:34 PM, Kurt Engle
<<mailto:[email protected]>[email protected]
<mailto:[email protected]>> wrote:

    I just upgraded the Red Hat system that RT 3.8.8 is running on.
    Upon reboot, RT would not stop and was complaining that my
    File::Temp was at 0.16 and needed to be at 0.18. So I upgraded to
    0.22 and now RT will still not start. The error message in the
    httpd log is:

    Unknown error\nCompilation failed in require at (eval 2) line 1.\n

    I have loaded 0.18 and things are still down.

    Any ideas or any more information needed?

    Thanks,

    Kurt Engle



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to