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

相关文章

忍不住在 PerlChina 邮件列表中盘点了一下 Perl 里的 Web 应用框架(巧的是 PerlBuzz 最近也有一篇相关...
bless有两个参数:对象的引用、类的名称。 类的名称是一个字符串,代表了类的类型信息,这是理解bless的...
gb2312转Utf的方法: use Encode; my $str = "中文"; $str_cnsoftware = encode("utf-8...
  perl 计算硬盘利用率, 以%来查看硬盘资源是否存在IO消耗cpu资源情况; 部份代码参考了iostat源码;...
1 简单变量 Perl 的 Hello World 是怎么写的呢?请看下面的程序: #!/usr/bin/perl print "Hello W...
本文介绍Perl的Perl的简单语法,包括基本输入输出、分支循环控制结构、函数、常用系统调用和文件操作,...