2012-04-26 65 views
1

我試圖安裝Perl模塊,並在某些時候我得到這個錯誤:Glibc的靜態鏈接

chmod 644 SSH2.bs 
rm -f blib/arch/auto/Net/SSH2/SSH2.so 
LD_RUN_PATH="/usr/lib:/lib" cc -shared -O2 -L/usr/local/lib -fstack-protector SSH2.o -o blib/arch/auto/Net/SSH2/SSH2.so \ 
     -L/root -L/usr/local/lib -L/lib -L/usr/lib -L/usr/local/lib -L/usr/local -L/usr/lib -L/usr -L/opt -L//lib -L/ -lssh2 -lz -lssl -lcrypto  \ 

/usr/bin/ld: cannot find -lz 
collect2: ld returned 1 exit status 
make: *** [blib/arch/auto/Net/SSH2/SSH2.so] Error 1 
-> FAIL Installing Net::SSH2 failed. See /root/.cpanm/build.log for details. 

我在其他論壇上發現,行,說

/usr/bin/ld: cannot find -lz 

意味着我失蹤glibc靜態包。但是我在CentOS 5上運行這個版本,並且在任何版本庫中都沒有glibc-static包。這個軟件包有其他替代名稱嗎?或者我的方向不對?

問候!

回答

1

不,-lz,指libz,zlib壓縮庫。我確定CentOS有這個 - 你可能想安裝「zlib-devel」包。