nagios插件安装问题
小弟在安装naigos插件的时候,出现了点问题环境是centos 6.4
安装的包
rpm -qa | grep gcc
gcc-gfortran-4.4.7-3.el6.x86_64
gcc-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.i686
gcc-java-4.4.7-3.el6.x86_64
compat-gcc-34-g77-3.4.6-19.el6.x86_64
gcc-gnat-4.4.7-3.el6.x86_64
compat-gcc-34-3.4.6-19.el6.x86_64
gcc-objc-4.4.7-3.el6.x86_64
compat-gcc-34-c++-3.4.6-19.el6.x86_64
gcc-objc++-4.4.7-3.el6.x86_64
libgcc-4.4.7-3.el6.x86_64
gcc-c++-4.4.7-3.el6.x86_64
make的时候通不过。。
百度了一圈,找不到结果,来问问论坛里的大大
问题现象# make
makeall-recursive
make: Entering directory `/chenxi/nagios-plugins-1.4.9'
Making all in gl
make: Entering directory `/chenxi/nagios-plugins-1.4.9/gl'
makeall-am
make: Entering directory `/chenxi/nagios-plugins-1.4.9/gl'
make: Nothing to be done for `all-am'.
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/gl'
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/gl'
Making all in lib
make: Entering directory `/chenxi/nagios-plugins-1.4.9/lib'
Making all in tests
make: Entering directory `/chenxi/nagios-plugins-1.4.9/lib/tests'
make: Nothing to be done for `all'.
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib/tests'
make: Entering directory `/chenxi/nagios-plugins-1.4.9/lib'
make: Nothing to be done for `all-am'.
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib'
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/lib'
Making all in plugins
make: Entering directory `/chenxi/nagios-plugins-1.4.9/plugins'
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/include -I/usr/include -g -O2 -MT check_pgsql.o -MD -MP -MF ".deps/check_pgsql.Tpo" -c -o check_pgsql.o check_pgsql.c; \
then mv -f ".deps/check_pgsql.Tpo" ".deps/check_pgsql.Po"; else rm -f ".deps/check_pgsql.Tpo"; exit 1; fi
check_pgsql.c:71: error: ‘NAMEDATALEN’ undeclared here (not in a function)
make: *** Error 1
make: Leaving directory `/chenxi/nagios-plugins-1.4.9/plugins'
make: *** Error 1
make: Leaving directory `/chenxi/nagios-plugins-1.4.9'
make: *** Error 2 本帖最后由 rdcwayx 于 2015-04-19 09:23 编辑
centos 6.4,还要从头make编译? 回复 2# rdcwayx
什么叫从头make哦?
就是在centos6。4中装nagios的插件,出现了这个问题,导致nagios插件不能make安装了 本帖最后由 xtlyk 于 2015-04-30 17:07 编辑
down.51cto/com/data/1980515
com前面的/换成.
nagios-2.4.8一键安装脚本
页:
[1]