天天看點

安裝chkrootkit 報 /usr/bin/ld: cannot find -lc出錯

1、環境:系統centos x64 6.6

2、軟體:安裝chkrootkit出錯

<code>[root@tomcat chkrootkit-0.50]</code><code># make sense</code>

cc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c

cc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c

cc -DHAVE_LASTLOG_H   -D_FILE_OFFSET_BITS=64 -o ifpromisc ifpromisc.c

cc  -o chkproc chkproc.c

cc  -o chkdirs chkdirs.c

cc  -o check_wtmpx check_wtmpx.c

cc -static  -o strings-static strings.c

/usr/bin/ld: cannot find -lc

collect2: ld returned 1 exit status

make: *** [strings-static] Error 1

3、檢查系統相關檔案是否存在,經查存在。

[root@tomcat chkrootkit-0.50]# find / -name libc.so

/usr/lib64/libc.so

/usr/lib/libc.so

4、安裝相關軟體包

[root@tomcat chkrootkit-0.50]# yum install glibc-static

5、再次編譯make sense

<code> </code><code>chkrootkit-0.50]</code><code># make sense</code>

<code>cc -static  -o strings-static strings.c</code>

<code>cc  -o chkutmp chkutmp.c</code>

參考:http://tchuairen.blog.51cto.com/3848118/1559436

本文轉自 lcpljc 51CTO部落格,原文連結:http://blog.51cto.com/lcpljc/1672939,如需轉載請自行聯系原作者

上一篇: rsync

繼續閱讀