【发布时间】:2016-02-14 06:56:45
【问题描述】:
我正在尝试安装 perl 模块 Date::Calc 版本 6。它是 gnuCalc 的一部分,安装时失败。我选择手动下载 Date::Calc 并安装它,但它给出了完全相同的错误,如下所示。由于 Date::Calc 不限于 gnuCalc,我希望有人能指出我解决这个问题的方向。
我使用的是 Windows 7 64 位。 Perl 是草莓 Perl 版本 5.18.2002
提前致谢。
E:\Downloads\Date-Calc-6.3>perl Makefile.PL
*************************************************************
****** BEWARE: Use "make install UNINST=1" to install! ******
*************************************************************
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Date::Calc
Writing MYMETA.yml and MYMETA.json
E:\Downloads\Date-Calc-6.3>C:\strawberry\c\bin\dmake.exe
cp lib/Date/Calc/Object.pod blib\lib\Date\Calc\Object.pod
cp lib/Date/Calc.pm blib\lib\Date\Calc.pm
cp lib/Date/Calendar/Profiles.pod blib\lib\Date\Calendar\Profiles.pod
cp lib/Date/Calendar.pm blib\lib\Date\Calendar.pm
cp lib/Date/Calendar.pod blib\lib\Date\Calendar.pod
cp lib/Date/Calc/Object.pm blib\lib\Date\Calc\Object.pm
cp lib/Date/Calc/PP.pm blib\lib\Date\Calc\PP.pm
cp lib/Date/Calendar/Profiles.pm blib\lib\Date\Calendar\Profiles.pm
cp lib/Date/Calc/PP.pod blib\lib\Date\Calc\PP.pod
cp lib/Date/Calendar/Year.pod blib\lib\Date\Calendar\Year.pod
cp lib/Date/Calendar/Year.pm blib\lib\Date\Calendar\Year.pm
cp lib/Date/Calc.pod blib\lib\Date\Calc.pod
E:\Downloads\Date-Calc-6.3>C:\strawberry\c\bin\dmake.exe test
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e"
"undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.
t
t/f000.t .. ok
t/f001.t .. ok
t/f002.t .. ok
t/f003.t .. ok
t/f004.t .. ok
t/f005.t .. ok
t/f006.t .. ok
t/f007.t .. ok
t/f008.t .. ok
t/f009.t .. ok
t/f010.t .. ok
t/f011.t .. ok
t/f012.t .. ok
t/f013.t .. ok
t/f014.t .. ok
t/f015.t .. ok
t/f016.t .. Failed 16/25 subtests
t/f017.t .. ok
t/f018.t .. ok
t/f019.t .. ok
t/f020.t .. ok
t/f021.t .. ok
t/f022.t .. ok
t/f023.t .. ok
t/f024.t .. ok
t/f025.t .. ok
t/f026.t .. ok
t/f027.t .. Failed 22/46 subtests
t/f028.t .. Failed 22/46 subtests
t/f029.t .. ok
t/f030.t .. ok
t/f031.t .. ok
t/f032.t .. ok
t/f033.t .. ok
t/f034.t .. ok
t/f035.t .. ok
t/f036.t .. ok
t/f037.t .. ok
t/m001.t .. ok
t/m002.t .. ok
t/m003.t .. ok
t/m004.t .. ok
t/m005.t .. ok
t/m006.t .. ok
t/m007.t .. ok
t/m008.t .. ok
t/m009.t .. ok
t/m010.t .. ok
t/m011.t .. ok
t/m012.t .. ok
t/m013.t .. ok
Test Summary Report
-------------------
t/f016.t (Wstat: 0 Tests: 25 Failed: 16)
Failed tests: 1-4, 6-7, 9-12, 15-17, 21-23
t/f027.t (Wstat: 0 Tests: 46 Failed: 22)
Failed tests: 7-15, 22, 24-27, 30-35, 44-45
t/f028.t (Wstat: 0 Tests: 46 Failed: 22)
Failed tests: 7-15, 22, 24-27, 30, 32, 34-37, 44-45
Files=51, Tests=3381, 3 wallclock secs ( 0.20 usr + 0.01 sys = 0.22 CPU)
Result: FAIL
Failed 3/51 test programs. 60/3381 subtests failed.
dmake.exe: Error code 255, while making 'test_dynamic'
【问题讨论】:
-
看起来 Date::Calc 现在有问题:3/51 测试程序失败。 60/3381 子测试失败。 Makefile:890:目标“test_dynamic”的配方失败 make:*** [test_dynamic] 错误 255
-
如果您不是特别需要 Date::Calc,我会推荐 DateTime。它具有更好的功能、界面和更好的维护。
-
@Schwern - 谢谢,Date::Calc 是 gnuCash 中 Finance::Quote 的依赖项,用于在线价格检索(股票报价)。也感谢您在错误报告末尾指出补丁。
标签: perl