Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

chkrootkit 編譯失敗怎麼辦:/usr/bin/ld: cannot find -lc

問題現場

在 CentOS 6.5 上安裝 chkrootkit,前面都順利,卡在 make 這一步:

wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
tar xvf chkrootkit.tar.gz
cd chkrootkit-0.51/
make sense

畫面直接吐出:

/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1

原因與解法

這是缺少靜態連結的 glibc 所導致的。補上 glibc-static 就能解決:

yum -y install glibc-static

參考資料:https://www.cyberciti.biz/faq/centos-rhel-redhat-usrbinld-cannot-findlc-error/

繼續完成安裝

make sense
cd ..
cp -r chkrootkit-0.51 /usr/local/chkrootkit
rm -rf chkrootkit*

使用方式

/usr/local/chkrootkit/chkrootkit -h   # 取得說明
/usr/local/chkrootkit/chkrootkit      # 直接進行系統檢測

如果輸出中出現 infected,最安全有效的處理方式就是備份資料後重新安裝系統——被植入 rootkit 的機器,很難真正清乾淨。

本文出自「隨風」部落格,請務必保留此出處:https://358778493.blog.51cto.com/11386071/1869858

Copyright © Linux教程網 All Rights Reserved