Error related to HTML::Template or LIst::Util

This error is showing up after the recent update of perl to 5.8.8.

Command '"./index.pl"' failed with return code 9 and error message List::Util object version 1.21 does not match bootstrap parameter 1.25 at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/XSLoader.pm line 94. Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm line 11. Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 916. BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/HTML/Template.pm line 916. Compilation failed in require at ./index.pl line 2. BEGIN failed--compilation aborted at ./index.pl line 2..

Status: 
Closed (fixed)

Comments

Howdy -- what Perl application is it that you're using there?

It seems to be erroring out in the Scalar::Util module -- but the Scalar::Util module included with Perl doesn't reside in that particular directory, it typically resides in "/usr/lib/perl5/5.8.8/Scalar/Util.pm".

Is it possible that a version of Scalar::Util and perhaps List::Util was installed directly from CPAN?

If so, it's possible that it's conflicting with the version that's currently installed as part of the Perl distribution.

Fixing it may be as simple as reinstalling that particular module. However, just to verify, what do these commands show:

rpm -qf /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Scalar/Util.pm
rpm -qf /usr/lib/perl5/5.8.8/i386-linux-thread-multi/List/Util.pm

Those will show if those files are owned by a CentOS package, or whether they're installed directly from CPAN.

bislinks's picture
Submitted by bislinks on Mon, 11/05/2012 - 10:19 Pro Licensee

I got this response to both the above commands : "is not owned by any package"

bislinks's picture
Submitted by bislinks on Mon, 11/05/2012 - 10:38 Pro Licensee

This is the error I get when I try to install Scalar::Util

install Scalar::Util CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Wed, 24 Oct 2012 23:55:04 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/lib/perl5/site_perl/5.8.8/IO/Uncompress/Base.pm line 1076.

How did you upgrade Perl exactly?

Also, what does this command show:

rpm -qa | grep perl-5

bislinks's picture
Submitted by bislinks on Mon, 11/05/2012 - 12:23 Pro Licensee

Virtualmin package update

bislinks's picture
Submitted by bislinks on Mon, 11/05/2012 - 12:23 Pro Licensee

perl-libwww-perl-5.805-1.1.1 perl-5.8.8-38.el5_8

Okay, so for starters -- I really don't know what's going on there :-)

While no one else has reported that issue in the forums or support tracker here, I did some Googling, and found various reports of that occurring on CentOS throughout the last 7 years or so.

Although I'm not clear on what's causing that (and doing so in a seemingly intermittent fashion), the folks at PerlMonks have posted a solution that worked for some of them. It essentially involves manually reinstalling the module that's causing the errors you're seeing.

You can see their solution here:

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

I'd suggest giving that a shot, and seeing if that resolves the errors you're getting.

bislinks's picture
Submitted by bislinks on Wed, 11/07/2012 - 20:44 Pro Licensee

Thanks Andreycheck, it worked.

Super, thanks for letting us know that you got it working again!

Automatically closed -- issue fixed for 2 weeks with no activity.