RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
编译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:
文章URL:http://scyingshan.cn/article/iiihgh.html