【问题标题】:What does this CPAN error mean?这个 CPAN 错误是什么意思?
【发布时间】:2012-01-17 11:23:22
【问题描述】:

我想安装IO::Uncompress::Gunzip,所以我愿意

perl -MCPAN -e 外壳 安装 CPAN 安装 IO::Uncompress::Gunzip

我明白了

cpan[11]> install IO::Uncompress::Gunzip
Running install for module 'IO::Uncompress::Gunzip'
Running make for P/PM/PMQS/IO-Compress-2.046.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/IO-Compress-2.046-d_Y9xt
---- Unsatisfied dependencies detected during ----
----       PMQS/IO-Compress-2.046.tar.gz      ----
    Compress::Raw::Zlib [requires]
    Compress::Raw::Bzip2 [requires]
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes] 

...

Result: FAIL
Failed 78/86 test programs. 35/328 subtests failed.
make: *** [test_dynamic] Error 255
  PMQS/IO-Compress-2.046.tar.gz
2 dependencies missing (Compress::Raw::Bzip2,Compress::Raw::Zlib); additionally test harness failed
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports PMQS/IO-Compress-2.046.tar.gz
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 PMQS/IO-Compress-2.046.tar.gz                : make_test NO 2 dependencies missing (Compress::Raw::Bzip2,Compress::Raw::Zlib); additionally test harness failed

http://pastebin.com/nGc80C8Z查看完整的错误输出

如果我尝试安装 Compress::Raw::Bzip2Compress::Raw::Zlib 我会得到

cpan[12]> install Compress::Raw::Zlib
Running install for module 'Compress::Raw::Zlib'
Running make for P/PM/PMQS/Compress-Raw-Zlib-2.045.tar.gz
  Has already been unwrapped into directory /root/.cpan/build/Compress-Raw-Zlib-2.045-kBMzIh
Could not make: Unknown error
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

cpan[13]> 

问题

谁知道这些错误是什么意思,也许我可以如何安装这些模块?

【问题讨论】:

    标签: perl cpan


    【解决方案1】:

    我能发现的第一个错误是/bin/sh: gcc: command not found。它正在尝试编译库的二进制部分,但找不到您的编译器。您可能需要安装 GCC。

    很多(如果不是全部)后续错误可能是由此产生的副作用。

    【讨论】:

      【解决方案2】:

      这对我很有帮助,但我需要执行的另一个步骤是在重试安装 [MODULE] 之前执行干净的 [MODULE],但此处没有提到我需要执行的一个步骤。

      对于这种环境的非新手来说,可能不需要提及,但我需要它。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-11-29
        • 2011-03-01
        • 2012-11-06
        相关资源
        最近更新 更多