Subject: | Makefile.PL does not work |
If CPAN.pm is configured to prefer Makefile.PL over Build.PL, then the build fails like this:
...
Output from '/opt/perl-5.30.2/bin/perl Makefile.PL':
# running Build.PL
Checking prerequisites...
requires:
! Data::UUID is not installed
! Moose is not installed
! MooseX::Singleton is not installed
! MooseX::Types is not installed
! Params::Util is not installed
! Readonly is not installed
! Regexp::Common is not installed
build_requires:
! Test::UseAllModules is not installed
recommends:
* Readonly::XS is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'WiX3' version '0.011'
A prereq of the form '>= 0.22, != 0.23, != 0.24' for 'List::MoreUtils' is not supported by Module::Build::Compat ( use a simpler version like '0.05' or 'v1.4.25' )
...
Maybe the easiest solution is to just drop Makefile.PL, as the build toolchain usually can cope with Build.PL even if Module::Build is not installed before.