Subject: | Can't locate Makefile.PL in @INC |
It seems that the build using CPAN.pm fails if a newer perl is used (e.g. 5.27.9) and prefer_installer=MB is configured:
...
Output from '/opt/perl-5.27.9/bin/perl5.27.9 Build.PL':
Can't locate Makefile.PL in @INC (@INC contains: /var/tmp/cpansmoker-1023/2018030418/CPAN-Reporter-lib-GT6_ /opt/perl-5.27.9/lib/site_perl/5.27.9/x86_64-linux /opt/perl-5.27.9/lib/site_perl/5.27.9 /opt/perl-5.27.9/lib/5.27.9/x86_64-linux /opt/perl-5.27.9/lib/5.27.9) at Build.PL line 1.
...
Possible fix (untested): put a 'use lib "."' on top of Makefile.PL --- "." is not anymore part of @INC in newer perls.