Subject: | perl Build.PL does not detect missing modules |
For the project: https://github.com/KES777/Devel-DebugHooks
```
kes@keswork ~/work/projects/perl_libs $ perl Build.PL
Checking prerequisites...
recommends:
* IO::Async::Loop is not installed
* Log::Log4perl 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
Run 'Build installdeps' to install missing prerequisites.
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Devel-DebugHooks' version '0.01_01'
kes@keswork ~/work/projects/perl_libs $ perlbrew list-modules
Capture::Tiny
Data::Dump
Data::OptList
Data::Section
ExtUtils::MakeMaker
Guard
MRO::Compat
Params::Util
Perl
Software::License
Sub::Exporter
Sub::Install
Test::FailWarnings
Test::Simple
Text::Template
Try::Tiny
kes@keswork ~/work/projects/perl_libs $ ./Build disttest
Creating Makefile.PL
Creating LICENSE file
Creating META.yml
Creating Devel-DebugHooks-0.01_01
Checking prerequisites...
recommends:
* IO::Async::Loop is not installed
* Log::Log4perl 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
Run 'Build installdeps' to install missing prerequisites.
Creating new 'MYMETA.yml' with configuration results
Creating new 'Build' script for 'Devel-DebugHooks' version '0.01_01'
Building Devel-DebugHooks
t/15-eval.t .......... Can't locate Test/Output.pm in @INC (@INC contains: /home/kes/work/projects/perl_libs/Devel-DebugHooks-0.01_01/blib/lib /home/kes/work/projects/perl_libs/Devel-DebugHooks-0.01_01/blib/arch /home/kes/perl5/perlbrew/perls/perl-5.12.5/lib/site_perl/5.12.5/x86_64-linux /home/kes/perl5/perlbrew/perls/perl-5.12.5/lib/site_perl/5.12.5 /home/kes/perl5/perlbrew/perls/perl-5.12.5/lib/5.12.5/x86_64-linux /home/kes/perl5/perlbrew/perls/perl-5.12.5/lib/5.12.5 .) at t/15-eval.t line 8.
BEGIN failed--compilation aborted at t/15-eval.t line 8.
```
But in the Build.PL:
```
test_requires => {
'Test::More' => 0,
'Test::Output' => 0,
'Test::Differences' => 0,
'Data::Section::Simple' => 0,
},
```