博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【错误集】之nagios-plugins编译出错
阅读量:7230 次
发布时间:2019-06-29

本文共 1877 字,大约阅读时间需要 6 分钟。

hot3.png

错误:

[root nagios-plugins-1.4.15]# make

...................
make[2]: Entering directory `/usr/local/src/nagios-plugins-1.4.15/perlmods'
../tools/build_perl_modules -d /usr/local/nagios/perl -m .
Got Test-Simple, with file: Test-Simple-0.70.tar.gz
Got Params-Validate, with file: Params-Validate-0.88.tar.gz
Got Math-Calc-Units, with file: Math-Calc-Units-1.06.tar.gz
Got Class-Accessor, with file: Class-Accessor-0.31.tar.gz
Got Config-Tiny, with file: Config-Tiny-2.10.tar.gz
Got Nagios-Plugin, with file: Nagios-Plugin-0.34.tar.gz
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 11.
BEGIN failed--compilation aborted at Makefile.PL line 11.
Can't run perl Makefile.PL at ../tools/build_perl_modules line 68.
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15/perlmods'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'
make: *** [all] Error 2

解决办法:

yum install perl-devel perl-CPAN -y

    如果在进行编译和安装,还是会报错,需要重新解压,在编译安装,即可。

[root nagios-plugins-1.4.15]# cd

[root ~]# rm -rf /usr/local/src/nagios-plugins-1.4.15
[root ~]# tar -axf nagios-plugins-1.4.15.tar.gz -C /usr/local/src/
[root ~]# cd -
/usr/local/src/nagios-plugins-1.4.15
[root nagios-plugins-1.4.15]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl=/usr/bin/openssl --enable-perl-modules
.............
[root nagios-plugins-1.4.15]# make
.............
[root nagios-plugins-1.4.15]# make install
.............
make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'
make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4.15'
[root nagios-plugins-1.4.15]

转载于:https://my.oschina.net/fufangchun/blog/223131

你可能感兴趣的文章
无法抗拒Minecraft给予超高的自由度和探索-微访谈
查看>>
数据结构之串
查看>>
我的友情链接
查看>>
lvs+keepalived+nginx+tomcat高可用高性能集群部署
查看>>
实验:搭建主DNS服务器
查看>>
org.gjt.mm.mysql.Driver与com.mysql.jdbc.Driver区别
查看>>
部署exchange2010三合一:之五:功能测试
查看>>
nginx编译安装参数
查看>>
代码托管
查看>>
第一次给ThinkPHP5核心框架提pull request的完整过程
查看>>
U-Mail邮件系统何以誉为信息整合中转枢纽
查看>>
强大的vim配置文件,让编程更随意
查看>>
崛起于Springboot2.X之配置文件详解(10)
查看>>
定时执行程序-Quartz简单实例
查看>>
【CF 应用开发大赛】MyfCMS系统
查看>>
windows下kangle虚拟主机-架设java空间的教程及心得
查看>>
Discuz! X2.5:文件目录结构
查看>>
我的友情链接
查看>>
TCP/IP协议及首部初了解
查看>>
防火墙iptables
查看>>