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

相关文章

1. 如何去重 #!/usr/bin/perl use strict; my %hash; while(...
最近写了一个perl脚本,实现的功能是将表格中其中两列的数据...
表的数据字典格式如下:如果手动写MySQL建表语句,确认麻烦,...
巡检类工作经常会出具日报,最近在原有日报的基础上又新增了...
在实际生产环境中,常常需要从后台日志中截取报文,报文的形...
最近写的一个perl程序,通过关键词匹配统计其出现的频率,让...