Perl – How to fix Perl CPAN module error: version 0.82 required, this is only version 0.78


Whether I use CPAN or install manually, every time I try to run "perl Makefile.PL" to build a makefile for a Perl module, I get the following error:

ERROR from evaluation of Makefile.PL: Can't locate object method "new" via package "CPAN::Meta" at /usr/lib/perl5/5.8.8/ExtUtils/ line 1199

The CPAN::Meta module is installed, so I'm completely stumped on this one.

When run: perl -MCPAN::Meta -e1 it returns me the error:

version 0.82 required–this is only version 0.78 at /usr/lib/perl5/5.8.8/CPAN/Meta/ line 12.

Best Solution

It seems that when installing ExtUtils::MakeMaker, (which is bundled inside EU::MM) was not upgraded. You need to upgrade it manually. root is required for this if you don't use local::lib.

Related Question