我如何在 Cygwin 上为 Perl 'use diagnostics'?

How do I 'use diagnostics' for Perl on Cygwin?

我想安装 DBD::AnyData,需要 SQL::Statement,需要 Math::Base::Convert。但是,它给了我这个错误

$ cpan install Math::Base::Convert
...
t/overload.t .............. couldn't find diagnostic data in /usr/lib/perl5/5.22/pods/perldiag.pod /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/lib /home/Chloe/.cpan/build/Math-Base-Convert-0.11-EySfLp/blib/arch /usr/lib/perl5/site_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/site_perl/5.22 /usr/lib/perl5/vendor_perl/5.22/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.22 /usr/lib/perl5/5.22/i686-cygwin-threads-64int /usr/lib/perl5/5.22 . t/overload.t at /usr/lib/perl5/5.22/diagnostics.pm line 259, <POD_DIAG> line 704.
Compilation failed in require at t/overload.t line 1.
BEGIN failed--compilation aborted at t/overload.t line 1.
t/overload.t .............. Dubious, test returned 2 (wstat 512, 0x200)

Test Summary Report
-------------------
t/overload.t            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=20, Tests=5327,  2 wallclock secs ( 0.28 usr  0.01 sys +  0.76 cusr  0.42 csys =  1.48 CPU)
Result: FAIL
Failed 1/20 test programs. 0/5327 subtests failed.
Makefile:859: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  MIKER/Math-Base-Convert-0.11.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports MIKER/Math-Base-Convert-0.11.tar.gz

我已经运行cpan -u

CPAN 版本 1.61,Perl 5.22.0

diagnostics 模块从 perldoc 文件 perldiag.pod 获取消息的解释。这两个都是 perl 的核心部分,但是一些打包系统选择将文档分发在一个单独的包中,即使 perl 安装了也可能不会安装。对于 Cygwin,这个包是 perl_pods。安装该软件包应该会使 diagnostics 模块正常工作。