Subject: | use lib "." needed |
In newer perls (e.g. 5.26.1, 5.27.8) "." is not anymore included in @INC, so running the Makefile.PL fails:
$ perl5.26.1 Makefile.PL
Can't locate inc/Module/Install.pm in @INC (you may need to install the inc::Module::Install module) (@INC contains: /opt/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux /opt/perl-5.26.1/lib/site_perl/5.26.1 /opt/perl-5.26.1/lib/5.26.1/x86_64-linux /opt/perl-5.26.1/lib/5.26.1) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
Currently this is workarounded in the CPAN installers (cpanm, CPAN.pm...), but this workaround will be removed in future, causing the module to fail building.
A possible workaround is to add
use lib ".";
on top of the Makefile.PL.