免费注册 查看新帖 |

Chinaunix

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

[系统安装] 在安装nagios-plugins make的时候报错了 大神门 求解... [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-04-27 17:46 |只看该作者 |倒序浏览
咱才刚开始刚开始学源码安装    最近安装老是在make的时候出问题  
在安装nagios-plugins  make报错了   不知道故障出在哪里了

[root@yanfan nagios-plugins-1.4.16]# make
make  all-recursive
make[1]: Entering directory `/tmp/nagios-plugins-1.4.16'
Making all in gl
make[2]: Entering directory `/tmp/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          echo '#define PREFIX "/usr/local/nagios"'; \
          echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
          echo '#define BINDIR "/usr/local/nagios/bin"'; \
          echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
          echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
          echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
          echo '#define DATADIR "/usr/local/nagios/share"'; \
          echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
          echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
          echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
          echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
          echo '#define OLDINCLUDEDIR "/usr/include"'; \
          echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define INFODIR "/usr/local/nagios/share/info"'; \
          echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define LIBDIR "/usr/local/nagios/lib"'; \
          echo '#define LISPDIR ""'; \
          echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
          echo '#define MANDIR "/usr/local/nagios/share/man"'; \
          echo '#define MANEXT ""'; \
          echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
          echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
          echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
          echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
        } | sed '/""/d' > configmake.h-t && \
        if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
          rm -f configmake.h-t; \
        else \
          rm -f configmake.h; mv configmake.h-t configmake.h; \
        fi
make  all-recursive
make[3]: Entering directory `/tmp/nagios-plugins-1.4.16/gl'
make[4]: Entering directory `/tmp/nagios-plugins-1.4.16/gl'
rm -f configmake.h-t && \
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          echo '#define PREFIX "/usr/local/nagios"'; \
          echo '#define EXEC_PREFIX "/usr/local/nagios"'; \
          echo '#define BINDIR "/usr/local/nagios/bin"'; \
          echo '#define SBINDIR "/usr/local/nagios/sbin"'; \
          echo '#define LIBEXECDIR "/usr/local/nagios/libexec"'; \
          echo '#define DATAROOTDIR "/usr/local/nagios/share"'; \
          echo '#define DATADIR "/usr/local/nagios/share"'; \
          echo '#define SYSCONFDIR "/usr/local/nagios/etc"'; \
          echo '#define SHAREDSTATEDIR "/usr/local/nagios/com"'; \
          echo '#define LOCALSTATEDIR "/usr/local/nagios/var"'; \
          echo '#define INCLUDEDIR "/usr/local/nagios/include"'; \
          echo '#define OLDINCLUDEDIR "/usr/include"'; \
          echo '#define DOCDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define INFODIR "/usr/local/nagios/share/info"'; \
          echo '#define HTMLDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define DVIDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define PDFDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define PSDIR "/usr/local/nagios/share/doc/nagios-plugins"'; \
          echo '#define LIBDIR "/usr/local/nagios/lib"'; \
          echo '#define LISPDIR ""'; \
          echo '#define LOCALEDIR "/usr/local/nagios/share/locale"'; \
          echo '#define MANDIR "/usr/local/nagios/share/man"'; \
          echo '#define MANEXT ""'; \
          echo '#define PKGDATADIR "/usr/local/nagios/share/nagios-plugins"'; \
          echo '#define PKGINCLUDEDIR "/usr/local/nagios/include/nagios-plugins"'; \
          echo '#define PKGLIBDIR "/usr/local/nagios/lib/nagios-plugins"'; \
          echo '#define PKGLIBEXECDIR "/usr/local/nagios/libexec/nagios-plugins"'; \
        } | sed '/""/d' > configmake.h-t && \
        if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null; then \
          rm -f configmake.h-t; \
        else \
          rm -f configmake.h; mv configmake.h-t configmake.h; \
        fi
make[4]: Leaving directory `/tmp/nagios-plugins-1.4.16/gl'
make[3]: Leaving directory `/tmp/nagios-plugins-1.4.16/gl'
make[2]: Leaving directory `/tmp/nagios-plugins-1.4.16/gl'
Making all in tap
make[2]: Entering directory `/tmp/nagios-plugins-1.4.16/tap'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/nagios-plugins-1.4.16/tap'
Making all in lib
make[2]: Entering directory `/tmp/nagios-plugins-1.4.16/lib'
Making all in .
make[3]: Entering directory `/tmp/nagios-plugins-1.4.16/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/tmp/nagios-plugins-1.4.16/lib'
Making all in tests
make[3]: Entering directory `/tmp/nagios-plugins-1.4.16/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/tmp/nagios-plugins-1.4.16/lib/tests'
make[2]: Leaving directory `/tmp/nagios-plugins-1.4.16/lib'
Making all in plugins
make[2]: Entering directory `/tmp/nagios-plugins-1.4.16/plugins'
gcc -DLOCALEDIR=\"/usr/local/nagios/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl   -I/usr/include   -DNP_VERSION='"1.4.16"' -g -O2 -MT check_http.o -MD -MP -MF .deps/check_http.Tpo -c -o check_http.o check_http.c
check_http.c: In function ‘process_arguments’:
check_http.c:312: 错误:‘ssl_version’ 未声明 (在此函数内第一次使用)
check_http.c:312: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
check_http.c:312: 错误:所在的函数内只报告一次。)
make[2]: *** [check_http.o] 错误 1
make[2]: Leaving directory `/tmp/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/nagios-plugins-1.4.16'
make: *** [all] 错误 2



打什么  求解啊

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
2 [报告]
发表于 2013-04-28 17:59 |只看该作者
groupadd nagios
useradd nagios -s /bin/bash -d /home/nagios -g nagios
tar -zxvf nagios-3.4.3.tar.gz
cd nagios
./configure --prefix=/home/nagios
make all
#安装主要的程序、CGI及HTML文件
make install
#安装开机自启动文件,nagios会做为系统服务
make install-init
#给外部命令访问nagios配置文件的权限
make install-commandmode
#把配置文件的例子复制到nagios的安装目录
make install-config

论坛徽章:
0
3 [报告]
发表于 2013-09-24 13:45 |只看该作者
用 yum install openssl-devel* 装上这个就可以了

论坛徽章:
0
4 [报告]
发表于 2013-09-24 15:30 |只看该作者
yum install openssl-devel*
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP