【错误集】之nagios-plugins编译出错

错误:

[root@localhost 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@localhost nagios-plugins-1.4.15]# cd
[root@localhost ~]# rm -rf /usr/local/src/nagios-plugins-1.4.15
[root@localhost ~]# tar -axf nagios-plugins-1.4.15.tar.gz -C /usr/local/src/
[root@localhost ~]# cd -
/usr/local/src/nagios-plugins-1.4.15
[root@localhost nagios-plugins-1.4.15]# ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl=/usr/bin/openssl --enable-perl-modules
.............
[root@localhost nagios-plugins-1.4.15]# make
.............
[root@localhost 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@localhost nagios-plugins-1.4.15]


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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值