Perl Error: List::Util object version does not match bootstrap

Perl Error: object version does not match and how to recompile Perl module on Linux

Perl Error

List::Util object version 1.21 does not match bootstrap parameter 1.38

Cause:

Usually this happens whenever you install a newer version of Perl without recompiling the module.

Fix:

Reinstall/Compile the affected module by following below steps.

Install / Reinstall Perl Module

From CPAN

cpan
install List::Util

 

Manually

Download required module from cpan site.
Extract the gz file in new_folder

cd new_folder
perl Makefile.PL
make
make test
make install

Confirm that perl module was installed successfully and not giving any error by running:

perl -e 'use Scalar::Util;'

List Perl Modules (This will list all modules and you can also search inside by using the same vim commands)

perldoc perllocal

 


Subscribe to
for video tutorials updates