nagios-plugins Ubuntu13.04编译报错./stdio.h:456:1: ...
2014-04-27 08:44
281 查看
今天买了一台vps安装nagios做监控. 但在编译nagios-plugin时竟然发生了如下错误:
In file included from localcharset.c:28:0:
./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function)
make[4]: *** [localcharset.o] Error 1
make[4]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[3]: *** [all-recursive] Error 1
make[3]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[2]: *** [all] Error 2
make[2]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[1]: *** [all-recursive] Error 1
make[1]:
Leaving directory `/root/nagios-plugins-1.4.16'
make: *** [all] Error 2
解决办法:
在gl目下执行:sed -i -e '/gets is a security/d' ./stdio.in.h就搞定了
In file included from localcharset.c:28:0:
./stdio.h:456:1: error: ‘gets’ undeclared here (not in a function)
make[4]: *** [localcharset.o] Error 1
make[4]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[3]: *** [all-recursive] Error 1
make[3]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[2]: *** [all] Error 2
make[2]:
Leaving directory `/root/nagios-plugins-1.4.16/gl'
make[1]: *** [all-recursive] Error 1
make[1]:
Leaving directory `/root/nagios-plugins-1.4.16'
make: *** [all] Error 2
解决办法:
在gl目下执行:sed -i -e '/gets is a security/d' ./stdio.in.h就搞定了
相关文章推荐
- Ubuntu 13.04编译boost1.54
- Ubuntu 13.04编译boost1.54
- Ubuntu13.04 Android 编译环境搭建
- ubuntu13.04下安装编译PCL
- Ubuntu13.04环境下载、编译Android源代码
- 【错误集】之nagios-plugins编译出错
- vmware虚拟机下ubuntu 13.04使用zeranoe脚本交叉编译ffmpeg
- Ubuntu13.04环境下载、编译Android源代码
- Ubuntu 13.04 编译环境配置及android 2.3 源代码编译时出现了以下错误 setrlimitsFromArray
- 创建能够编译android源码的ubuntu13.04环境的步骤
- Ubuntu13.04环境下载、编译Android源代码
- ubuntu 编译 找不到 stdio.h
- Ubuntu13.04编译安装cmake2.8.12.2
- 【环境搭建005】UBUNTU13.04 android4.08 源码编译实践中遇到的问题
- Building LLVM on Ubuntu 12.04 32bit and Ubuntu 13.04 64bit ——LLVM安装编译手记
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- ubuntu13.04编译安装lnmp
- 解决nagios报错:./stdio.h:456:1: error: 'gets' undeclared here (not in a function)的问题
- ubuntu 13.04编译安装xen4.4总结
- ubuntu 10.04/ubuntu 12.04 /ubuntu 13.04 编译android 差异