2014-09-24 33 views
0
/usr/bin/ld: skipping incompatible /usr/lib/libgd.so when searching for -lgd 
/usr/bin/ld: skipping incompatible /usr/lib/libgd.a when searching for -lgd 
/usr/bin/ld: cannot find -lgd 
collect2: ld returned 1 exit status 
make: *** [blib/arch/auto/GD/GD.so] Error 1 
    /usr/bin/make -- NOT OK 
Running make test 
    Can't test without successful make 
Running make install 
    make had returned bad status, install seems impossible 

我試圖安裝在5.8的GD.pm,並堅持在這個問題上。我已經用yum安裝了所有可用的圖形庫。 有什麼想法嗎?不能安裝在5.8的GD GDDPS在5.8上,並堅持在這個問題上。5.8

回答

4

GD模塊只是圍繞libgd的一個薄層。所以你要先安裝它。

$ sudo yum install gd 

您可能也需要開發庫(對於C頭文件)。但是,總而言之,安裝Centos軟件包(它可以處理所有的依賴關係)可能會更好一些。

$ sudo yum install perl-GD 
+0

非常感謝! 我剛剛錯過了gd-devel,認爲安裝一切,但它是錯誤的。 – Supervision 2014-09-24 12:01:05