Subject: | Makefile.PL fails on Perl without "." in @INC |
$ perl5.26.0 Makefile.PL
Can't locate inc/Module/Install/DSL.pm in @INC (you may need to install the inc::Module::Install::DSL module) (@INC contains: /opt/perl-5.26.0/lib/site_perl/5.26.0/x86_64-linux /opt/perl-5.26.0/lib/site_perl/5.26.0 /opt/perl-5.26.0/lib/5.26.0/x86_64-linux /opt/perl-5.26.0/lib/5.26.0) at Makefile.PL line 1.
BEGIN failed--compilation aborted at Makefile.PL line 1.
A possible workaround:
$ env PERL_USE_UNSAFE_INC=1 perl5.26.0 Makefile.PL
But probably there should be something like
use lib ".";
on top of the Makefile.PL.