安装nagios时make all出错

时间:2019-08-20 17:58:27  来源:igfitidea点击:

安装Nagios 4.0.2时,执行make all报错:

[root@localhost nagios-4.0.2]# make all
cd ./base && make
make[1]: Entering directory /root/nagios-4.0.2/base
make[1]: *** No rule to make target ../include/locations.h, needed by nagios.o.  Stop.
make[1]: Leaving directory /root/nagios-4.0.2/base
make: *** [all] Error 2
[root@localhost nagios-4.0.2]#

解决方案

安装perl

yum -y install perl perl-devel

重新编译安装

cd nagios-4.0.2

./configure --with-command-group=nagcmd

make all