微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

perl – CPAN无法安装DateTime模块

我尝试通过运行“cpan”并在提示符下键入“install DateTime”来安装Perl DateTime模块.经过大量的处理和打印后,我得到了这样的信息:
Compilation Failed in require at (eval 907) line 3.
# Looks like your test died before it Could output anything.
t/41cldr_format.........dubIoUs                                              
        Test returned status 255 (wstat 65280,0xff00)
DIED. Failed tests 1-101
        Failed 101/101 tests,0.00% okay
t/42duration_class......ok                                                   
t/pod-coverage..........skipped
        all skipped: Test::Pod::Coverage 1.08 required for testing POD coverage
t/pod...................skipped
        all skipped: Test::Pod 1.14 required for testing POD
Failed Test          Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/07compare.t         255 65280    26   18  69.23%  18-26
t/17set_return.t      255 65280     7   12 171.43%  2-7
t/19leap_second.t     255 65280   172  302 175.58%  22-172
t/23storable.t        255 65280    21   42 200.00%  1-21
t/24from_object.t     255 65280    10    8  80.00%  7-10
t/30future_tz.t       255 65280     5   10 200.00%  1-5
t/34set_tz.t          255 65280     8   16 200.00%  1-8
t/36invalid_local.t   255 65280     4    5 125.00%  1-4
t/37local-add.t       255 65280    26   52 200.00%  1-26
t/38local-subtract.t  255 65280   127  254 200.00%  1-127
t/41cldr_format.t     255 65280   101  202 200.00%  1-101
3 tests and 9 subtests skipped.
Failed 11/44 test scripts,75.00% okay. 462/3296 subtests Failed,85.98% okay.
make: *** [test_dynamic] Error 255
  DROLSKY/DateTime-0.50.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module,try:
  reports DROLSKY/DateTime-0.50.tar.gz
Running make install
  make test had returned bad status,won't install without force
Failed during this command:
 DROLSKY/DateTime-0.50.tar.gz                 : make_test NO

它是什么意思,我该如何解决

编辑:我正在运行Fedora.

解决方法

您使用的操作系统/发行版是什么?从包中安装这些模块通常更容易,因为这样也会获得依赖性.在Ubuntu你只会:
sudo apt-get install libdatetime-perl

原文地址:https://www.jb51.cc/Perl/172434.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐