编译报错 :*** [all-local] Error 2

博客内容讲述了在编译nrpe时遇到的Error 2问题,该问题由缺少Perl模块引起。解决方案是通过运行'yum -y install perl-ExtUtils-MakeMaker'安装缺失的模块,然后重新执行'make&&make install'进行编译安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

nrpe 编译报错

Using Makefile.PL
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98/blib/lib /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98/blib/arch /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 6.
BEGIN failed--compilation aborted at Makefile.PL line 6.
make[3]: Entering directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98'
make[3]: *** No targets specified and no makefile found.  Stop.
make[3]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98'
Can't run make. Please
        rm -rf /tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods/Test-Simple-0.98
to remake from this point) at ../tools/build_perl_modules line 235.
make[2]: *** [all-local] Error 2
make[2]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1/perlmods'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tools/anloqnagios/nagios-plugins-release-2.2.1'
make: *** [all] Error 2

这个是缺少Perl模块导致 安装

yum -y install perl-ExtUtils-MakeMaker

然后再次make&&make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值