无法在Perl中安装Time :: Out模块

 一个不需要幸福的男人丶 发布于 2023-01-11 14:12

我正在尝试安装Time::Out.

该错误看起来来自tar文件.我还需要安装更多东西吗?我得到以下内容:

install Time::Out
Reading 'C:\Perl\cpan\Metadata'
  Database was generated on Thu, 05 Jun 2014 08:53:02 GMT   
Running install for module 'Time::Out'
Checksum for C:\Perl\cpan\sources\authors\id\P\PA\PATL\Time-Out-0.11.tar.gz ok
Scanning cache C:\Perl/cpan/build for sizes
............................................................................DONE

Time-Out-0.11/
Time-Out-0.11/MANIFEST
Time-Out-0.11/t/
Time-Out-0.11/t/01_init.t
Time-Out-0.11/t/pod.t
Time-Out-0.11/t/03_exceptions.t
Time-Out-0.11/t/02_usage.t
Time-Out-0.11/Out.pod
Time-Out-0.11/README
Time-Out-0.11/Out.pm
Time-Out-0.11/META.yml
Time-Out-0.11/Makefile.PL
Time-Out-0.11/Changes
Configuring P/PA/PATL/Time-Out-0.11.tar.gz with Makefile.PL
Set up gcc environment - 3.4.5 (mingw-vista special r3)
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Time::Out
Writing MYMETA.yml and MYMETA.json
  PATL/Time-Out-0.11.tar.gz
  C:\Perl\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for P/PA/PATL/Time-Out-0.11.tar.gz
cp Out.pm blib\lib\Time\Out.pm
cp Out.pod blib\lib\Time\Out.pod
  PATL/Time-Out-0.11.tar.gz
  C:\Perl\site\bin\dmake.exe -- OK
Running make test
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Te
st::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/01_init.t ........ ok
t/02_usage.t .......
The following tests use sleep() so please be patient...
t/02_usage.t ....... 10/15 # Failed test 11 in t/02_usage.t at line 97
#  t/02_usage.t line 97 is: ok($@ eq 'timeout') ;
t/02_usage.t ....... 11/15 # Failed test 12 in t/02_usage.t at line 108
#  t/02_usage.t line 108 is: ok($@ eq 'timeout') ;
# Failed test 13 in t/02_usage.t at line 109  
#  t/02_usage.t line 109 is: ok(!$seen) ;
t/02_usage.t ....... Failed 3/15 subtests
        (less 1 skipped subtest: 11 okay)
t/03_exceptions.t .. ok
t/pod.t ............ skipped: Test::Pod 1.00 required for testing POD

Test Summary Report
-------------------
t/02_usage.t     (Wstat: 0 Tests: 15 Failed: 3)
  Failed tests:  11-13
Files=4, Tests=19, 23 wallclock secs ( 0.09 usr +  0.05 sys =  0.14 CPU)
Result: FAIL
Failed 1/4 test programs. 3/19 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
  PATL/Time-Out-0.11.tar.gz
  C:\Perl\site\bin\dmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PATL/Time-Out-0.11.tar.gz
Failed during this command:
 PATL/Time-Out-0.11.tar.gz                    : make_test NO

还有其他模块我可以使用类似的Time::Out吗?再说alarm

1 个回答
  • 根据Time :: Out文档,它不能用于阻止Windows上的IO.这意味着 - 至少 - 测试将失败.您可以使用cpan shell跳过测试force install Time::Out,但这可能意味着它不适用于您的目的.

    2023-01-11 14:14 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有