Subject: | PrereqCheck cannot detect Term::ReadLine::Perl |
On a system with installed Term::ReadLine::Perl I get:
$ echo "Term::ReadLine::Perl 0" | perl5.18.1 -MCPAN::Reporter::PrereqCheck -e 'CPAN::Reporter::PrereqCheck::_run()'
Term::ReadLine::Perl 0 broken
This is because Term::ReadLine::Perl cannot be require'd on its own without Term::ReadLine loaded before. Without Term::ReadLine loaded:
$ perl5.18.1 -e 'require Term::ReadLine::Perl'
Can't locate object method "Features" via package "Term::ReadLine::Stub" at /usr/perl5.18.1/lib/site_perl/5.18.1/Term/ReadLine/Perl.pm line 101.
Compilation failed in require at -e line 1.
With Term::ReadLine:
$ perl5.18.1 -e 'require Term::ReadLine; require Term::ReadLine::Perl' && echo everything is ok
everything is ok
So Term::ReadLine::Perl is another candidate for an exception in _try_load() in CPAN::Reporter::PrereqCheck.
Regards,
Slaven