Subject: | Makefile.PL fails on Perl without "." in @INC |
On a debian/stretch system with perl 5.27.2:
$ perl5.27.2 Makefile.PL
Can't locate lib/Audio/SndFile/Constants.pm in @INC (you may need to install the lib::Audio::SndFile::Constants module) (@INC contains: /opt/perl-5.27.2/lib/site_perl/5.27.2/x86_64-linux /opt/perl-5.27.2/lib/site_perl/5.27.2 /opt/perl-5.27.2/lib/5.27.2/x86_64-linux /opt/perl-5.27.2/lib/5.27.2) at Makefile.PL line 55.
BEGIN failed--compilation aborted at Makefile.PL line 56.
Possible workaround here:
$ env PERL_USE_UNSAFE_INC=1 perl5.27.2 Makefile.PL
Probably Makefile.PL should have something like
use lib ".";
on top.