file - 在 Win 10, 1903 中使用 Strawberry perl 5.30.2.1 安装 Win32::Unicode::File 是否有修复
问题描述
Win32::Unicode::File
在 Windows 10 1903(北美 ACP 1252)中安装模块失败并显示cpan Win32::Unicode::File
.
草莓perl安装uname='Win32 strawberry-perl 5.30.2.1 #1 Tue Mar 17 03:21:32 2020 x64'
C:\temp\work>perl -v
This is perl 5, version 30, subversion 2 (v5.30.2) built for MSWin32-x64-multi-thread
Copyright 1987-2020, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
该问题已在2018 年的 Perl Monks帖子中记录。
有解决问题的方法吗?
C:\temp\work>cpan Win32::Unicode::File
Loading internal logger. Log::Log4perl recommended for better logging
CPAN: CPAN::SQLite loaded ok (v0.217)
Database was generated on Thu, 11 Jun 2020 18:42:49 GMT
Running install for module 'Win32::Unicode::File'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.093)
Checksum for C:\bin\Portable\strawberry-perl\cpan\sources\authors\id\X\XA\XAICRON\Win32-Unicode-0.38.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.36)
CPAN: YAML::XS loaded ok (v0.81)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20200314)
Configuring X/XA/XAICRON/Win32-Unicode-0.38.tar.gz with Makefile.PL
Writing ppport.h
.......
.......
Test Summary Report
-------------------
t/04_print.t (Wstat: 768 Tests: 13 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
Files=27, Tests=284, 28 wallclock secs ( 0.30 usr + 0.06 sys = 0.36 CPU)
Result: FAIL
Failed 1/27 test programs. 3/284 subtests failed.
gmake: *** [Makefile:1038: test_dynamic] Error 255
XAICRON/Win32-Unicode-0.38.tar.gz
C:\bin\Portable\strawberry-perl\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports XAICRON/Win32-Unicode-0.38.tar.gz
Stopping: 'install' failed for 'Win32::Unicode::File'.
更新:
ikegami向我推荐了以下信息,即通过强制安装可以忽略失败的测试。
尝试强制安装cpan -f -i Win32::Unicode::File
失败并显示以下消息
Test Summary Report
-------------------
t/04_print.t (Wstat: 768 Tests: 13 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
Files=27, Tests=284, 28 wallclock secs ( 0.25 usr + 0.05 sys = 0.30 CPU)
Result: FAIL
Failed 1/27 test programs. 3/284 subtests failed.
gmake: *** [Makefile:1038: test_dynamic] Error 255
XAICRON/Win32-Unicode-0.38.tar.gz
C:\bin\Portable\strawberry-perl\c\bin\gmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports XAICRON/Win32-Unicode-0.38.tar.gz
Running make install for XAICRON/Win32-Unicode-0.38.tar.gz
"C:\bin\Portable\strawberry-perl\perl\bin\perl.exe" "-Iinc" -MExtUtils::Command::MM -e cp_nonempty -- Unicode.bs blib\arch\auto\Win32\Unicode\Unicode.bs 644
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree
Installing C:\bin\Portable\strawberry-perl\perl\site\lib\auto\Win32\Unicode\Unicode.xs.dll
Appending installation info to C:\bin\Portable\strawberry-perl\perl\lib/perllocal.pod
XAICRON/Win32-Unicode-0.38.tar.gz
C:\bin\Portable\strawberry-perl\c\bin\gmake.exe install UNINST=1 -- OK
Stopping: 'install' failed for 'Win32::Unicode::File'.
解决方案
推荐阅读
- typescript - Typescript 命令行选项参考
- performance - 为什么我们需要增加 Google Cloud 中的磁盘大小来提高性能?
- r - 将带有列表度量的 tbl_cube 转换为小标题的问题
- ios - 如何通过单击根据其内容更改表格单元格的高度(折叠和展开)?
- php - 侧边栏中的 PHP 代码无法正常工作
- ruby-on-rails - rails中save和sneaky_save的区别
- prolog - 收集实体值对 - 一个规范的解决方案?
- php - 如何使用 DirectoryMatch 获取没有文件扩展名的 URL
- bash - Bash:如何在“\ n”上将字符串拆分为可迭代的字符串系列?
- scala - Akka 线程在 futex_ 状态下保持不变——这正常吗?