Correcting Perl Scalar::List::Util Errors on CentOS 5

4/5 - (1 vote)

We started getting some reports from users on CentOS 5 trying to run EasyApache and being unable to due to the following error:

Undefined subroutine &Scalar::Util::readonly called at /usr/lib/perl5/site_perl/5.8.8/IO/Uncompress/Base.pm line 1104.

We found that this is due to an outdated Scalar::Util module that was unable to be loaded properly by system Perl.  To fix this, you need to update the perl module directly from source.

You can find the latest sources from: http://search.cpan.org/~pevans/Scalar-List-Utils-1.39/

Example:

cd /usr/src

wget http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/Scalar-List-Utils-1.39.tar.gz

tar -xvzf Scalar-List-Utils-1.39.tar.gz

cd Scalar-List-Utils-1.39

perl Makefile.pl

gmake

gmake install

 

Now re-install the original module that was complaining:

/usr/local/cpanel/scripts/perlinstaller Uncompress::Base

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in