Today, I was installing Nagios 4.0.2 version through tarball and while installation I got the issue that is make[1]: *** No rule to make target `../include/locations.h’, needed by `nagios.o’. Stop.
The error occur after I hit the command make all
. I have already installed gcc so the error was coming from some other dependency requirement
The below given is the reference of error which I found
[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]#
The solution for this error is ,complete the given below steps
Step 1: Install perl
yum -y install perl perl-devel
Step 2: After installing perl again change to extracted Nagios Directory.And rerun the .configure command. After doing this issue is resolved
cd nagios-4.0.2 ./configure --with-command-group=nagcmd make all