存档::Zip 在 Strawberry Perl 上安装失败



我安装了Strawberry Perl。然后我尝试使用 CPAN 安装 Archive::P erl 模块,失败了。然后我尝试安装其他模块,如Log::Log4perl,成功了。

平台-

Summary of my perl5 (revision 5 version 20 subversion 1) configuration:
  Platform:
    osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread
    uname='Win32 strawberry-perl 5.20.1.1 #1 Mon Sep 15 13:26:45 2014 x64'
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    use64bitint=define, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE  -DPERL_TEXTMODE_SCRIPTS-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv -fno-strict-aliasing -mms-bitfields',
    optimize='-s -O2',
    cppflags='-DWIN32'
    ccversion='', gccversion='4.8.3', gccosandvers=''

错误摘要 -

Test Summary Report
-------------------
t/02_main.t                 (Wstat: 512 Tests: 47 Failed: 7)
  Failed tests:  25, 32-34, 38, 46-47
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 141 tests but ran 47.
t/03_ex.t                   (Wstat: 1536 Tests: 17 Failed: 6)
  Failed tests:  4, 6, 10, 13-14, 16
  Non-zero exit status: 6
Files=16, Tests=140,  9 wallclock secs ( 0.09 usr +  0.13 sys =  0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
  PHRED/Archive-Zip-1.39.tar.gz
  C:STRAWB~1cbindmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
 PHRED/Archive-Zip-1.39.tar.gz                : make_test NO

完整的安装输出 -

cpan> install Archive::Zip
Running install for module 'Archive::Zip'
Checksum for C:STRAWB~1cpansourcesauthorsidPPHPHREDArchive-Zip-1.39.tar.gz ok
Configuring P/PH/PHRED/Archive-Zip-1.39.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Archive::Zip
Writing MYMETA.yml and MYMETA.json
  PHRED/Archive-Zip-1.39.tar.gz
  C:strawberryperlbinperl.exe Makefile.PL make=dmake -- OK
Running make for P/PH/PHRED/Archive-Zip-1.39.tar.gz
cp lib/Archive/Zip/ZipFileMember.pm bliblibArchiveZipZipFileMember.pm
cp lib/Archive/Zip/MockFileHandle.pm bliblibArchiveZipMockFileHandle.pm
cp lib/Archive/Zip/DirectoryMember.pm bliblibArchiveZipDirectoryMember.pm
cp lib/Archive/Zip/FileMember.pm bliblibArchiveZipFileMember.pm
cp lib/Archive/Zip/NewFileMember.pm bliblibArchiveZipNewFileMember.pm
cp lib/Archive/Zip/MemberRead.pm bliblibArchiveZipMemberRead.pm
cp lib/Archive/Zip/Member.pm bliblibArchiveZipMember.pm
cp lib/Archive/Zip/Tree.pm bliblibArchiveZipTree.pm
cp lib/Archive/Zip/Archive.pm bliblibArchiveZipArchive.pm
cp lib/Archive/Zip/FAQ.pod bliblibArchiveZipFAQ.pod
cp lib/Archive/Zip/BufferedFileHandle.pm bliblibArchiveZipBufferedFileHandle.pm
cp lib/Archive/Zip.pm bliblibArchiveZip.pm
cp lib/Archive/Zip/StringMember.pm bliblibArchiveZipStringMember.pm
"C:strawberryperlbinperl.exe" -MExtUtils::Command -e cp -- script/crc32 blibscriptcrc32
pl2bat.bat blibscriptcrc32
  PHRED/Archive-Zip-1.39.tar.gz
  C:STRAWB~1cbindmake.exe -- OK
Running make test
"C:strawberryperlbinperl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blibli
b', 'blibarch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/02_main.t ................... 1/141
#   Failed test at t/02_main.t line 95.
#          got: 'testdir/RwLiD4dp9b/'
#     expected: 'testdirRwLiD4dp9b/'
error: member not found
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 185.
        Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\RwLiD4dp9b/") called at t/02_main.t line 128
#   Failed test at t/02_main.t line 129.
#          got: '2'
#     expected: '0'
#   Failed test at t/02_main.t line 130.
#   Failed test at t/02_main.t line 133.
#   Failed test at t/02_main.t line 146.
#          got: 'testdir/RwLiD4dp9b/string.txt'
#     expected: 'testdirRwLiD4dp9b/string.txt'
error: member not found
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 185.
        Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x3123628), "testdir\RwLiD4dp9b/string.txt") called at t/02_main.t
line 175
#   Failed test at t/02_main.t line 176.
#          got: '2'
#     expected: '0'
#   Failed test at t/02_main.t line 177.
Can't use an undefined value as a symbol reference at t/common.pm line 163.
# Looks like you planned 141 tests but ran 47.
# Looks like you failed 7 tests of 47 run.
# Looks like your test exited with 2 just after 47.
t/02_main.t ................... Dubious, test returned 2 (wstat 512, 0x200)
Failed 101/141 subtests
        (less 3 skipped subtests: 37 okay)
t/03_ex.t ..................... The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/03_ex.t ..................... 1/17 error: member not found
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 185.
        Archive::Zip::Archive::extractMember(Archive::Zip::Archive=HASH(0x4c8468), "testdir\cq6T6jDiTJ/testing.txt") called at examples/ext
ract.pl line 34
Extracting testdircq6T6jDiTJ/testing.txt from C:UsersamurtyAppDataLocalTemptestout-P4oqi.zip failed
t/03_ex.t ..................... 4/17 #   Failed test at t/03_ex.t line 37.
#          got: '65280'
#     expected: '0'
Can't call method "desiredCompressionLevel" on an undefined value at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Arc
hive.pm line 257.
#   Failed test at t/03_ex.t line 41.
#          got: '512'
#     expected: '0'
t/03_ex.t ..................... 8/17
#   Failed test at t/03_ex.t line 55.
#          got: 'testdir/cq6T6jDiTJ/testing.txt:100
# '
#     expected: 'testdircq6T6jDiTJ/testing.txt:100
# '
error: testdircq6T6jDiTJtesting.txt is neither a file nor a directory
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 355.
        Archive::Zip::Archive::addFileOrDirectory(Archive::Zip::Archive=HASH(0x458588), "testdir\cq6T6jDiTJ\testing.txt") called at exampl
es/selfex.pl line 28
#   Failed test 'extractedtestdircq6T6jDiTJtesting.txt exists'
#   at t/03_ex.t line 69.
#          got: undef
#     expected: '1'
error: Can't rename C:UsersamurtyAppDataLocalTemptestout-P4oqi.zip as C:UsersamurtyAppDataLocalTemptestout-P4oqi.zbk Permission
denied
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 472.
        Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x637a98), "C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip
") called at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 440
        Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x637a98)) called at examples/updateTree.pl line 28
t/03_ex.t ..................... 14/17 #   Failed test 'updateTree.pl create'
#   at t/03_ex.t line 78.
#          got: '512'
#     expected: '0'
error: Can't rename C:UsersamurtyAppDataLocalTemptestout-P4oqi.zip as C:UsersamurtyAppDataLocalTemptestout-P4oqi.zbk Permission
denied
 at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 472.
        Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x4e7a98), "C:\Users\amurty\AppData\Local\Temp\testout-P4oqi.zip
") called at C:STRAWB~1cpanbuildArchive-Zip-1.39-UHv240bliblib/Archive/Zip/Archive.pm line 440
        Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x4e7a98)) called at examples/updateTree.pl line 28
#   Failed test 'updateTree.pl update'
#   at t/03_ex.t line 81.
#          got: '512'
#     expected: '0'
# Looks like you failed 6 tests of 17.
t/03_ex.t ..................... Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/17 subtests
t/04_readmember.t ............. The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/04_readmember.t ............. ok
t/05_tree.t ................... The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/05_tree.t ................... ok
t/06_update.t ................. The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... The process cannot access the file because it is being used by another process.
warning: C:strawberryperlbinperl.exe -pe "BEGIN{binmode(STDIN);binmode(STDOUT)}" doesn't seem to work, may skip some tests at t/common.p
m line 189.
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
Test Summary Report
-------------------
t/02_main.t                 (Wstat: 512 Tests: 47 Failed: 7)
  Failed tests:  25, 32-34, 38, 46-47
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 141 tests but ran 47.
t/03_ex.t                   (Wstat: 1536 Tests: 17 Failed: 6)
  Failed tests:  4, 6, 10, 13-14, 16
  Non-zero exit status: 6
Files=16, Tests=140,  9 wallclock secs ( 0.09 usr +  0.13 sys =  0.22 CPU)
Result: FAIL
Failed 2/16 test programs. 13/140 subtests failed.
dmake.exe:  Error code 255, while making 'test_dynamic'
  PHRED/Archive-Zip-1.39.tar.gz
  C:STRAWB~1cbindmake.exe test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PHRED/Archive-Zip-1.39.tar.gz
Stopping: 'install' failed for 'Archive::Zip'.
Failed during this command:
 PHRED/Archive-Zip-1.39.tar.gz                : make_test NO

cpan>

他们改变了一些东西,因为它现在可以工作了。

Running make test
"C:strawberryperlbinperl.exe" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blibli
b', 'blibarch')" t/*.t
t/01_compile.t ................ ok
t/02_main.t ................... ok
t/03_ex.t ..................... ok
t/04_readmember.t ............. ok
t/05_tree.t ................... ok
t/06_update.t ................. ok
t/07_filenames_of_0.t ......... ok
t/08_readmember_record_sep.t .. skipped: Ignoring failing tests on Win32
t/09_output_record_sep.t ...... ok
t/10_chmod.t .................. ok
t/11_explorer.t ............... ok
t/12_bug_47223.t .............. ok
t/13_bug_46303.t .............. ok
t/14_leading_separator.t ...... ok
t/15_decrypt.t ................ ok
t/16_decrypt.t ................ ok
t/17_101092.t ................. ok
t/18_bug_92205.t .............. ok
t/19_bug_101240.t ............. ok
All tests successful.
Files=19, Tests=272, 10 wallclock secs ( 0.09 usr +  0.14 sys =  0.23 CPU)
Result: PASS
Archive::Zip is up to date (1.46).

最新更新