免费注册 查看新帖 |

Chinaunix

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

安装nagios-plugins报错 路过的朋友给指点一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-12 17:24 |只看该作者 |倒序浏览
./configure --prefix=/usr/local/nagios
这步OK没问题
make时出现下列错误

root -L/usr/local/openssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -ldl
make[2]: Leaving directory `/root/nagios/nagios-plugins-1.4.13/plugins-root'
Making all in po
make[2]: Entering directory `/root/nagios/nagios-plugins-1.4.13/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/nagios/nagios-plugins-1.4.13/po'
make[2]: Entering directory `/root/nagios/nagios-plugins-1.4.13'
make[2]: Leaving directory `/root/nagios/nagios-plugins-1.4.13'
make[1]: Leaving directory `/root/nagios/nagios-plugins-1.4.13'

日志报错信息

论坛徽章:
0
2 [报告]
发表于 2008-11-13 13:14 |只看该作者
没人回答, 自己继续找问题。

论坛徽章:
0
3 [报告]
发表于 2008-11-13 15:05 |只看该作者
lz你在什么平台上编译的

你是用make吗

还是用了 make all

我觉得你这日志好像也不全啊

论坛徽章:
0
4 [报告]
发表于 2008-11-18 16:25 |只看该作者
日志不全吧

[ 本帖最后由 exp07 于 2008-11-18 16:37 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2008-11-20 17:23 |只看该作者
只贴了报错的地方了,后来 直接make install  也没什么问题! 使用也正常。

论坛徽章:
0
6 [报告]
发表于 2008-11-21 15:00 |只看该作者
这不算报错吧……没有看到error的字样啊,连warning都没有。我的才算是报错,也是./configure --with-nagios-user=nagios --with-nagios-group=nagios没有问题,但是make的时候报:
……
gcc -g -O2 -o check_ide_smart check_ide_smart.o utils.o  -L/home/soft/nagios-plugins-1.4.11/plugins -L/usr/local/ssl/lib ../lib/libnagiosplug.a ../gl/libgnu.a
if gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap  -I/usr/local/ssl/include -I/usr/include -I/usr/local/ssl/include -I/usr/include -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c; \
then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi
check_mysql.c:51:19: mysql.h: 没有那个文件或目录
check_mysql.c:52:20: errmsg.h: 没有那个文件或目录
check_mysql.c:58: error: `MYSQL_PORT' undeclared here (not in a function)
check_mysql.c: In function `main':
check_mysql.c:73: error: `MYSQL' undeclared (first use in this function)
check_mysql.c:73: error: (Each undeclared identifier is reported only once
check_mysql.c:73: error: for each function it appears in.)
check_mysql.c:73: error: syntax error before "mysql"
check_mysql.c:74: error: `MYSQL_RES' undeclared (first use in this function)
check_mysql.c:74: error: `res' undeclared (first use in this function)
check_mysql.c:75: error: `MYSQL_ROW' undeclared (first use in this function)
check_mysql.c:75: error: syntax error before "row"
check_mysql.c:91: error: `mysql' undeclared (first use in this function)
check_mysql.c:93: error: `MYSQL_READ_DEFAULT_GROUP' undeclared (first use in this function)
check_mysql.c:97: error: `CR_UNKNOWN_HOST' undeclared (first use in this function)
check_mysql.c:99: error: `CR_VERSION_ERROR' undeclared (first use in this function)
check_mysql.c:101: error: `CR_OUT_OF_MEMORY' undeclared (first use in this function)
check_mysql.c:103: error: `CR_IPSOCK_ERROR' undeclared (first use in this function)
check_mysql.c:105: error: `CR_SOCKET_CREATE_ERROR' undeclared (first use in this function)
check_mysql.c:112: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:116: error: `CR_SERVER_GONE_ERROR' undeclared (first use in this function)
check_mysql.c:118: error: `CR_SERVER_LOST' undeclared (first use in this function)
check_mysql.c:120: error: `CR_UNKNOWN_ERROR' undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:146: error: `row' undeclared (first use in this function)
check_mysql.c:147: warning: passing arg 1 of `strlen' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of `memcpy' makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 1 of `__strdup' makes pointer from integer without a cast
check_mysql.c:165: error: `MYSQL_FIELD' undeclared (first use in this function)
check_mysql.c:165: error: `fields' undeclared (first use in this function)
make[2]: *** [check_mysql-check_mysql.o] 错误 1
make[2]: Leaving directory `/home/soft/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] 错误1
make[1]: Leaving directory `/home/soft/nagios-plugins-1.4.11'
make: *** [all] 错误 2

论坛徽章:
0
7 [报告]
发表于 2008-11-21 15:01 |只看该作者
我都不知道该怎么办。

论坛徽章:
0
8 [报告]
发表于 2008-11-21 16:00 |只看该作者
仔细看里面的内容,你在那里看到错误的字眼了呢?
还有就是,你应该make过一次了,这次make过程没有改任何东西

论坛徽章:
0
9 [报告]
发表于 2008-11-21 16:38 |只看该作者
iamshiyu ,你的问题不是没有安装MYSQL吗

论坛徽章:
0
10 [报告]
发表于 2008-11-21 17:43 |只看该作者
日志没有贴全
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP