编译nagios-plugins报错./stdio.h:456:1:-成都快上网建站

编译nagios-plugins报错./stdio.h:456:1:

在AWS的EC2上编译nagios-plugins报错:

在石河子等地区,都构建了全面的区域性战略布局,加强发展的系统性、市场前瞻性、产品创新能力,以专注、极致的服务理念,为客户提供成都做网站、网站设计、外贸营销网站建设 网站设计制作按需求定制网站,公司网站建设,企业网站建设,高端网站设计,全网整合营销推广,成都外贸网站制作,石河子网站建设费用合理。

./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

解决办法:

cd /root/nagios-plugins-1.4.16/gl
sed -i -e '/gets is a security/d' ./stdio.in.h

分享文章:编译nagios-plugins报错./stdio.h:456:1:
本文路径:http://kswjz.com/article/iiihgh.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流