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
This saved me. Back on track again. Thank you!
Thank You Joel! I am glad the solution worked for you too.
Best Regards
Sharad
make[1]: Leaving directory `/root/Nagios/nagios-4.1.1/cgi’
cd ./html && make
make[1]: Entering directory `/root/Nagios/nagios-4.1.1/html’
(cd angularjs && unzip -u angular-1.3.9.zip)
/bin/sh: unzip: command not found
make[1]: *** [all] Error 127
make[1]: Leaving directory `/root/Nagios/nagios-4.1.1/html’
make: *** [all] Error 2
[root@ip-172-31-87-154 nagios-4.1.1]#
Followed the article but still getting the error any suggestions please
Hi Sneha,
Install unzip command in your system. I got the reference from your given log sample.
Regards
Sharad
daddy cool thanks
This helped me too and appreciated Thanks…..
You are welcome Amol,
Thanks for giving us feedback.
Best Regards
Sharad
Thanks, this helped me. It is fast and simple. Peace out.
Thank You Rene,
Regards
Sharad
Thank you , this helped very quickly.
do you have any tutorial on how to setup SNMP trap on nagios core ?
Hello Ditmar,
Welcome. Right now SNMP tutorial is not written in blog
Regards
Sharad
Thank you – this posting helped me correct an error with my Nagios install. Much appreciated!!
Welcome Steven,
Very glad to know the post helps you.
Keep reading our blog.
Thanks and Regards
Sharad