如何修复这些失败的 Perl 测试?

Spa*_*awk 5 perl

使测试失败

我正在尝试构建 Perl 5.16.3。然而,它在这make test部分失败了。

Failed 2 tests out of 2246, 99.91% okay.
    ../cpan/Archive-Extract/t/01_Archive-Extract.t
    ../lib/h2ph.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You have a good chance to get more information by running
###   ./perl harness
### in the 't' directory since most (>=80%) of the tests succeeded.
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
u=99.10  s=23.36  cu=7851.09  cs=326.70  scripts=2246  tests=528321
makefile:868: recipe for target 'test' failed
make: *** [test] Error 1
Run Code Online (Sandbox Code Playgroud)

使用线束排除故障

我不确定如何处理 的含糊之处may have to set,所以一开始我忽略了它。这是输出(错误打印在下面)。

$ cd t; ./perl harness ../cpan/Archive-Extract/t/01_Archive-Extract.t ../lib/h2ph.t
../cpan/Archive-Extract/t/01_Archive-Extract.t ..
Dubious, test returned 154 (wstat 39424, 0x9a00)
Failed 154/1704 subtests
    (less 534 skipped subtests: 1016 okay)
../lib/h2ph.t ...................................
Failed 2/6 subtests

Test Summary Report
-------------------
../cpan/Archive-Extract/t/01_Archive-Extract.t (Wstat: 39424 Tests: 1704 Failed: 154)
  Failed tests:  87, 89-94, 98, 100-105, 111, 113-118, 122
                124-129, 255, 257-262, 266, 268-273, 495
                497-502, 506, 508-513, 567, 569-574, 578
                580-585, 615, 617-622, 626, 628-633, 711
                713-718, 722, 724-729, 807, 809-814, 818
                820-825, 879, 881-886, 890, 892-897, 903
                905-910, 914, 916-921, 927, 929-934, 938
                940-945
  Non-zero exit status: 154
../lib/h2ph.t                                 (Wstat: 0 Tests: 6 Failed: 2)
  Failed tests:  5-6
Files=2, Tests=1710, 38 wallclock secs ( 3.60 usr  0.15 sys + 16.97 cusr  6.03 csys = 26.75 CPU)
Result: FAIL
Run Code Online (Sandbox Code Playgroud)

这是错误。

$ cd t; ./perl harness ../cpan/Archive-Extract/t/01_Archive-Extract.t ../lib/h2ph.t
#   Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'x/w''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'x/w'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x/w' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x'

#   Failed test 'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'x/w''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'x/w'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x/w' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/x'

#   Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.par' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.par' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.war' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.war' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.ear' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'y.ear' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '2'

#   Failed test 'Found correct output file 'y/z''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'y/z'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y/z' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/y'

#   Failed test 'extract() for 'x.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.jar' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.par' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.par' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.zip' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_Archive-Extract.t line 505.

#   Failed test 'Extract dir is expected '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out''
#   at t/01_Archive-Extract.t line 507.
#          got: undef
#     expected: '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out'

#   Failed test 'extract() for 'x.ear' reports success (PP: 0 Bin: 1)'
#   at t/01_Archive-Extract.t line 478.

#   Failed test 'Found correct number of output files ()'
#   at t/01_Archive-Extract.t line 491.
#          got: '0'
#     expected: '1'

#   Failed test 'Found correct output file 'a''
#   at t/01_Archive-Extract.t line 498.
#          got: undef
#     expected: 'a'

#   Failed test 'Output file '/home/osmc/perl-5.16.3/perl-5.16.3/cpan/Archive-Extract/t/out/a' exists'
#   at t/01_Archive-Extract.t line 501.

#   Failed test 'Extract dir found'
#   at t/01_Archive-Extract.t line 503.

#   Failed test 'Extract dir exists'
#   at t/01_

Sin*_*nür 1

由于Archive::Extract位于 CPAN 上,因此您的一个选择是处理make installperl刚刚构建的,然后更新到最新版本Archive::Extract,并查看测试失败是否仍然存在。

如果失败仍然存在,请切换到构建目录Archive::Extract并在调试模式下运行测试:

$ perl -Iblib t\01_Archive-Extract.t 1

(您可能希望将输出保存到文件中)。

从表面上看,至少一些失败与涉及压缩 tar 文件(gzip、xz、bzip 等)的测试有关。一种可能性是您tar和/或其他命令行实用程序与预期不符Archive::Extract

调试输出应该有助于查明问题。请使用运行测试的调试输出更新您的问题。无需使用pastebin或类似服务。无需发布您尝试安装的模块的源代码,因为它在 CPAN 上可用。

更新:从 CPAN 安装模块不需要使用 CPAN shell。

下载最新的 tarball,解压它,然后执行以下操作:

$ wget https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Extract-0.76.tar.gz
$ tar -xvf Archive-Extract-0.76.tar.gz
$ cd 存档-提取-0.76
$ perl Makefile.PL
$ nmake
$ perl -Iblib t\1_Archive-Extract.t 1