Subject: | Install fails on 5.25.11 with . not in @INC |
In Perl 5.25.11 '.' is no longer in @INC by default, so the Makefile.PL fails with:
% perl Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /home/ollisg/.perlbrew/libs/perl-5.25.11@dev/lib/perl5/x86_64-linux-thread-multi /home/ollisg/.perlbrew/libs/perl-5.25.11@dev/lib/perl5 /home/ollisg/perl5/perlbrew/perls/perl-5.25.11/lib/site_perl/5.25.11/x86_64-linux-thread-multi /home/ollisg/perl5/perlbrew/perls/perl-5.25.11/lib/site_perl/5.25.11 /home/ollisg/perl5/perlbrew/perls/perl-5.25.11/lib/5.25.11/x86_64-linux-thread-multi /home/ollisg/perl5/perlbrew/perls/perl-5.25.11/lib/5.25.11) at Makefile.PL line 4.
BEGIN failed--compilation aborted at Makefile.PL line 4.
The easiest way to fix this is to add
use lib '.';
to the top of your Makefile.PL