chkrootkit 编译报错的解决/usr/bin/ld: cannot find -lc

时间:2022-07-17 02:14:02

1:Centos6.5安装chkrootkit

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


2:解决办法:

yum -y install glibc-static


参考:


http://www.cyberciti.biz/faq/centos-rhel-redhat-usrbinld-cannot-findlc-error/


3:继续

make sense


cd ..


cp -r chkrootkit-0.51 /usr/local/chkrootkit


rm -rf chkrootkit*


#获得帮助

/usr/local/chkrootkit/chkrootkit -h


#直接进行系统检测

/usr/local/chkrootkit/chkrootkit



#如果发现infected命令,最安全有效的方法就是备份数据,并重新安装系统!!!



本文出自 “随风” 博客,请务必保留此出处http://358778493.blog.51cto.com/11386071/1869858