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

作者:佚名 上传时间:2019-05-28 版权申诉

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,如需转载请自行联系原作者

免责申明:文章和图片全部来源于公开网络,如有侵权,请通知删除 server@dude6.com

用户评论
相关推荐
安装chkrootkit /usr/bin/ld: cannot find -lc出错
1、环境:系统centos x64 6.6 2、软件:安装chkrootkit出错
darknet usr bin ld cannot find lcuda
ubuntu18.04 , cuda10.0 编译darknet出现/usr/bin/ld: cannot find -lcuda cannot find -lcuda 意思是编译时未找到libcud
PDF
29KB
2021-01-15 15:38
Linux编译静态链接出现usr bin ld cannot find lc解决方式
Linux编译静态链接出现:/usr/bin/ld:cannotfind-lc.将libc.a拷贝到usr/lib/中,问题得以解决。
A
0B
2019-07-19 10:19
/usr/bin/ld: cannot find -lmysqlclien
环境 centos5.7 x86_64 系统上安装postfix ! 错误 "/usr/bin/ld: cannot find -lmysqlcli
usr/bin/ld: cannot find 错误解决方法
参考:http://blog.siyebocai.cn/20100324_5p424qs7.html 通常在软件编译时出现的usr/bin/ld: cannot find
usr/bin/ld: cannot find 错误解决方法
参考:http://blog.siyebocai.cn/20100324_5p424qs7.html 通常在软件编译时出现的usr/bin/ld: cannot find -lx
LAMP编译:usr bin ld cannot find lltdl 错误的解决办法
文章来源:http://yangsiwei.com/usr-bin-ld-cannot-find-lltdl-%E9%94%99%E8%AF%AF%E7%9A%84%E8%A7%A3%E5%
usr bin ld找不到lcuda
1,这是一个压缩文件,解压后名称应为libcuda.so,是cuda库中的一个重要文件。2,这个文件用于不具备cuda显卡的电脑在ubuntu平台配置gpgpu-sim时,绕过因为找不到lcuda而无
7Z
0B
2019-09-07 02:49
在QNX上编译时出现'ld: cannot find -lc'错误
在QNX操作系统上,出现'ld: cannot find -lc'错误通常是由于缺少标准C库引起的。该错误表明链接器无法找到标准C库。要解决这个问题,首先确保您的QNX系统中已经正确安装了标准C库。您
QNX
QNX
2023-12-05 09:59
AIX系统中遇到/usr/bin/ld: 0706-006 Cannot find or open library文件的问题
这个错误表明链接器无法找到或打开指定的库文件。出现这种情况通常是由于系统找不到所需的库文件路径或者库文件本身不存在。首先,您需要确认指定的库文件是否存在于系统中,并检查库文件的路径是否正确。可以使用f
AIX 7.2
AIX
2023-12-04 02:43