2012-01-17 206 views
3

我想安裝IO::Uncompress::Gunzip,所以我做這個CPAN錯誤是什麼意思?

的perl -MCPAN -e殼 安裝CPAN 安裝IO ::解壓縮:: 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]> 

問題

有誰什麼這些錯誤的意思,也許我該怎麼安裝這些模塊?

回答

9

我可以發現的第一個錯誤是/bin/sh: gcc: command not found。它試圖編譯庫的二進制部分,並且找不到你的編譯器。您可能需要安裝GCC。

很多(如果不是全部的話)後續錯誤可能是副作用。

3

這對我很有幫助,但是在這裏沒有提到的我需要執行的另一個步驟是安裝一個模塊,在重試安裝[MODULE]之前執行一個乾淨的[MODULE]。

可能不需要提及非環境友好的環境,但我需要它。