perl - 这个 CPAN 错误是什么意思?

标签 perl cpan

我要安装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]> 

问题

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

最佳答案

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

很多(如果不是全部)随后的错误可能是这种情况的副作用。

关于perl - 这个 CPAN 错误是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8893787/

相关文章:

java - 如何使用 Perl 将输入管道输入到 Java 应用程序?

连接到 Perforce 的 Perl 单元测试 -- 连接到服务器失败;检查 $P4PORT

linux - git checkout --patch,但失败,无法在@INC 中找到 Git.pm

json - "Fatal error: ' EXTERN.h ' file not found"安装 Perl 模块时

linux - 不一致的 CPAN 模块行为——该怪谁?

perl - 排序是否有助于 Perl 中 grep 的效率

shell - 使用 sed 计算反向引用

带有 NTLM 身份验证的 Perl Mechanize

perl - 如何找到已安装 Perl 模块的版本?

perl - Perl 工具链中 Meta 2 支持的状态如何?