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

2024-02-09

我正在尝试安装Number::Format https://metacpan.org/pod/Number::Format在 Windows 上与 Padre 一起使用:

cpanm Number::Format

我收到以下错误。我怎样才能解决这个问题?

    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.

已经有一个错误报告 https://rt.cpan.org/Public/Bug/Display.html?id=71044为了这。该问题尚未解决,但有人上传了一个补丁,您可以尝试:

原因似乎是 POSIX 模块,它返回许多“-1”值,其中 Number::Format->new() 期望缺少哈希键...我能够通过使用附加补丁作为解决方法来成功测试和安装。但在 POSIX 模块中解决这个问题可能会更聪明。

每当模块构建失败时,您都应该检查 CPAN 测试人员报告。测试是failing http://matrix.cpantesters.org/?dist=Number-Format%201.73;os=mswin32;perl=5.20.0;reports=1对于 Window x64 上的 Perl 5.20.0,所以不仅仅是您。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

为什么在 Win 64 上安装 Number::Format 失败? 的相关文章

随机推荐