Subject: | Can't locate Module/Build/Compat.pm |
If CPAN.pm is configured to prefer Makefile.PL over Build.PL (prefer_installer=EUMM) and Module::Build::Compat is not yet installed, then the automatic installation fails:
...
Output from '/usr/perl5.31.8p/bin/perl5.31.8 Makefile.PL':
Can't locate Module/Build/Compat.pm in @INC (you may need to install the Module::Build::Compat module) (@INC contains: lib /var/tmp/cpansmoker-1023/2020021620/CPAN-Reporter-lib-stDI /usr/perl5.31.8p/lib/site_perl/5.31.8/amd64-freebsd /usr/perl5.31.8p/lib/site_perl/5.31.8 /usr/perl5.31.8p/lib/5.31.8/amd64-freebsd /usr/perl5.31.8p/lib/5.31.8 .) at Makefile.PL line 2.
BEGIN failed--compilation aborted at Makefile.PL line 2.
...
Probably easiest is to drop Makefile.PL and work only with Build.PL. Alternatively specify Module::Build::Compat as a configure_requires dependency, or rewrite Makefile.PL to not use Module::Build::Compat.