免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2467 | 回复: 9
打印 上一主题 下一主题

求助,安装net-snmp的时候有错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-27 16:12 |只看该作者 |倒序浏览
做了configure之后,运行make,出现错误:
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/cacti/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1

请教这个错误是什么问题

论坛徽章:
0
2 [报告]
发表于 2008-06-27 16:27 |只看该作者
最好是把详细的过程和输出拿过来,或者直接用rpm包算了。

论坛徽章:
0
3 [报告]
发表于 2008-06-28 10:18 |只看该作者
tar -zxvf net-snmp--5.4.1.tar.gz
进入目录后,运行以下命令:
./configure --prefix=/usr/local/net-snmp  --enable-developer
均无问题
之后,运行make,出错:
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/cacti/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1
编译中断

论坛徽章:
0
4 [报告]
发表于 2008-06-28 10:19 |只看该作者
tar -zxvf net-snmp--5.4.1.tar.gz
进入目录后,运行以下命令:
./configure --prefix=/usr/local/net-snmp  --enable-developer
均无问题
之后,运行make,出错:
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/cacti/net-snmp-5.4.1/agent'
make: *** [subdirs] Error 1
编译中断

论坛徽章:
0
5 [报告]
发表于 2008-06-28 10:29 |只看该作者
需要elf包?

应该是一些devel包没有装

论坛徽章:
0
6 [报告]
发表于 2008-06-28 14:15 |只看该作者
有可能,因为我装linux的时候只选了一部分软件包,请问楼上的,需要哪些devel包呢?

论坛徽章:
0
7 [报告]
发表于 2008-06-28 22:11 |只看该作者
这个的确不好说,我觉得最好是用系统自带rpm,这样具体有哪些包有需要也可以对比看看。

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
8 [报告]
发表于 2008-06-29 00:31 |只看该作者
原帖由 mcaser 于 2008-6-27 16:12 发表
做了configure之后,运行make,出现错误:
/usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/cacti/net-snmp-5.4.1/ ...

请问你是用Red Hat 9吗?

论坛徽章:
0
9 [报告]
发表于 2008-07-11 17:34 |只看该作者
ln -s /usr/lib/libelf.so.1  /usr/lib/libelf.so

论坛徽章:
0
10 [报告]
发表于 2008-07-12 01:24 |只看该作者
主要要看详细的错误信息了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP