Perl 为什么在Win 64上安装Number::Format失败?

Perl 为什么在Win 64上安装Number::Format失败?,perl,Perl,我正在尝试安装以在Windows上与Padre一起使用: cpanm编号::格式 我得到以下错误。我怎样才能解决这个问题 cpanm (App::cpanminus) 1.7034 on perl 5.020002 built for MSWin32-x86-multi-thread-64int Work directory is C:\Users\admin/.cpanm/work/1433356714.11300 You have make C:\STRAWB~1\c\bin\dm

我正在尝试安装以在Windows上与Padre一起使用:

cpanm编号::格式
我得到以下错误。我怎样才能解决这个问题

    cpanm (App::cpanminus) 1.7034 on perl 5.020002 built for MSWin32-x86-multi-thread-64int
Work directory is C:\Users\admin/.cpanm/work/1433356714.11300
You have make C:\STRAWB~1\c\bin\dmake.exe
You have LWP 6.08
Falling back to Archive::Tar 2.04
Searching Number::Format () on cpanmetadb ...
--> Working on Number::Format
Fetching http://www.cpan.org/authors/id/W/WR/WRW/Number-Format-1.73.tar.gz
-> OK
Unpacking Number-Format-1.73.tar.gz
Entering Number-Format-1.73
Checking configure dependencies from META.yml
Configuring Number-Format-1.73
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Number::Format
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have POSIX 0 ... Yes (1.38_03)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.98)
Checking if you have Test::More 0 ... Yes (1.001014)
Checking if you have Carp 0 ... Yes (1.3301)
Building and testing Number-Format-1.73
cp Format.pm blib\lib\Number\Format.pm
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib\lib', 'blib\arch')" t/*.t
t/format_bytes.t ..... ok
t/format_negative.t .. ok
t/format_number.t .... ok
t/format_picture.t ... ok
t/format_price.t ..... ok
Invalid sep_by_space value at t/locale.t line 77.
# Looks like your test exited with 255 just after 5.
t/locale.t ........... 
Dubious, test returned 255 (wstat 65280, 0xff00)
All 5 subtests passed 
    (less 3 skipped subtests: 2 okay)
t/object.t ........... ok
t/round.t ............ ok
t/unformat_number.t .. ok

Test Summary Report
-------------------
t/locale.t         (Wstat: 65280 Tests: 5 Failed: 0)
  Non-zero exit status: 255
Files=9, Tests=147,  1 wallclock secs ( 0.11 usr +  0.03 sys =  0.14 CPU)
Result: FAIL
Failed 1/9 test programs. 0/147 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
-> FAIL Installing Number::Format failed. See C:\Users\admin\.cpanm\work\1433356714.11300\build.log for details. Retry with --force to force install it.
已经有了一个解决方案。问题尚未解决,但有人上传了一个补丁,您可以尝试:

原因似乎是POSIX模块,它返回了许多“-1”值,其中Number::Format->new()需要缺少散列键。。。通过使用附加的补丁作为解决方法,我能够成功地进行测试和安装。但是在POSIX模块中解决这个问题可能更明智


每当模块构建失败时,您都应该检查CPAN Testers报告。这些测试是针对Windows x64上的Perl 5.20.0的,因此不仅仅是您。

请显示失败测试的结果,而不是测试摘要。@TSBN感谢您的回复。好吧,但我不知道怎么做@r@Arnold:在标有“测试摘要输出”的部分上方还有许多其他测试输出。这就是我们需要看到的。请编辑您的问题,以显示您的所有输出,而不仅仅是摘要。有一个针对此-。很遗憾,我们不能把这个问题当作一个骗局来解决。不管怎样,模块需要一个代码更改。我与作者一起收到了一个github pull请求,如果您想测试的话,它修复了草莓和Cygwin上的一些问题@齐本,您好,先生,非常感谢您的回答!因此,我建议我们使用正则表达式。。。。。现在您可以结束此主题@r Nota Bene:我得到了xml::twig:回到归档::Tar 2.04。但这已成为历史。by@Arnold,“退回归档::Tar”不是问题。它显示,当使用Perl模块而不是
tar
命令行实用程序时,Windows系统中通常不存在该实用程序。