阅读:2533回复:3
还是ucd-snmp安装的问题,求助!
我这段时间老是缠绕在安装ucd-snmp问题上。我按照安装步骤上做下来后,居然连snmpd等好多工具都没有生成!然后,我又换了各种版本,从4.2.1-4.2.6都是这个问题。后来我仔细看了安装过程,发现从./configure起都出现问题了。系统有很多行提示……no。然后在make时有下面的错误:
for i in snmplib agent apps local ov man ; do \\ ( cd $i ; make ) ; \\ done make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/snmplib\' /bin/sh ../libtool --mode=compile gcc -g -O2 -Dlinux -I/usr/include/rpm -I. -I. . -I. -I./.. -c -o scapi.lo scapi.c rm -f .libs/scapi.lo gcc -g -O2 -Dlinux -I/usr/include/rpm -I. -I.. -I. -I./.. -c scapi.c -fPIC -DPI C -o .libs/scapi.lo scapi.c: In function `sc_encrypt\': scapi.c:612: incompatible types in initialization scapi.c:612: incompatible types in initialization scapi.c:612: incompatible types in initialization scapi.c:612: incompatible type for argument 1 of `memset\' scapi.c: In function `sc_decrypt\': scapi.c:725: incompatible types in initialization scapi.c:725: incompatible types in initialization scapi.c:725: incompatible types in initialization scapi.c:725: incompatible type for argument 1 of `memset\' make[1]: *** [scapi.lo] Error 1 make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/snmplib\' make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/agent\' cd mibgroup; make; cd .. make[2]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/agent/mibgroup\' make[2]: Nothing to be done for `all\'. make[2]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/agent/mibgroup\' make[1]: *** No rule to make target `../snmplib/libsnmp.la\', needed by `snmpd\'. Stop. make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/agent\' make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/apps\' make[1]: *** No rule to make target `../snmplib/libsnmp.la\', needed by `snmpget\' . Stop. make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/apps\' make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/local\' make[1]: Nothing to be done for `all\'. make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/local\' make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/ov\' make[1]: Nothing to be done for `all\'. make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/ov\' make[1]: Entering directory `/usr/local/src/ucd-snmp-4.2.6/man\' make[1]: Nothing to be done for `all\'. make[1]: Leaving directory `/usr/local/src/ucd-snmp-4.2.6/man\' 这是怎么回事啊?我用的是redhat9.0。救救我吧! |
|
沙发#
发布于:2003-10-15 22:06
你的gcc编译出错的地方好像是两个加解密函数,不知道你在configure的时候是否正确设置.我用的时netsnmp5.0.7,在rh80和rh73下都没有问题,netsnmp5.0.7是你用的版本的更新的版本,要不你就用netsnmp5.0.7吧.:)
|
|
板凳#
发布于:2003-10-21 20:34
现在确定了,redhat9.0不支持ucd-snmp。因为开发需要我换成了7.2。谢谢你的帮助!
|
|
地板#
发布于:2003-10-25 02:44
不客气
|
|