安装chkrootkit 报 /usr/bin/ld: cannot find -lc出错

简介:

1、环境:系统centos x64 6.6

2、软件:安装chkrootkit出错

1
[root@tomcat chkrootkit-0.50] # make sense


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

1
2
3
  chkrootkit-0.50] # make sense
cc -static  -o strings-static strings.c
cc  -o chkutmp chkutmp.c

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










本文转自 lcpljc 51CTO博客,原文链接:http://blog.51cto.com/lcpljc/1672939,如需转载请自行联系原作者

目录
相关文章
|
6月前
|
Shell C语言
/bin/sh: cc: 未找到命令
/bin/sh: cc: 未找到命令
|
5月前
|
C语言
gcc静态编译/usr/bin/ld: cannot find -lc
gcc静态编译/usr/bin/ld: cannot find -lc
|
6月前
|
Java Linux
linux配置jdk环境出现错误:/usr/libexec/grepconf.sh: line 5: grep: command not found 的解决办法
linux配置jdk环境出现错误:/usr/libexec/grepconf.sh: line 5: grep: command not found 的解决办法
二进制编译安装/usr/bin/ld: cannot find -latomic报错排查思路
排查过程 /usr/bin/ld: cannot find -latomic主要观察这句报错内容,一般出现这种报错,都是缺少了一些函式库文件导致,编译不同的软件,报错错也是都不一样的,相同的一定就是有这句话:/usr/bin/ld: cannot find。
1118 0
二进制编译安装/usr/bin/ld: cannot find -latomic报错排查思路
|
消息中间件 PHP
PHP编译安装amqp扩展报错解决:/usr/bin/ld: cannot find -lrabbitmq
PHP编译安装amqp扩展报错解决:/usr/bin/ld: cannot find -lrabbitmq
82 0
PHP编译安装amqp扩展报错解决:/usr/bin/ld: cannot find -lrabbitmq
/usr/bin/xsltproc: not found
/usr/bin/xsltproc: not found
82 0
未解决:lrelease: could not exec ‘/usr/lib/qt5/bin/lrelease‘: No such file or directory
未解决:lrelease: could not exec ‘/usr/lib/qt5/bin/lrelease‘: No such file or directory
142 0
|
Shell 数据库管理
/bin/sh: 1: tclsh: not found
/bin/sh: 1: tclsh: not found
239 0