Hello All,
I was trying to install Nagios on CentOS 6.2 by following the below link and having few errors at the "Install Nagios" section in the website, could you please let me know how to get rid of it and successfully install.
Install Nagios in CentOS CENTREON 6 | Linux Tutorial
I have pasted the link as well as system specifications along with error messages.
[root@nagiospoc nagios-3.2.0]# uname -a
Linux nagiospoc 2.6.32-220.2.1.el6.x86_64 #1 SMP Fri Dec 23 02:21:33 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@nagiospoc nagios-3.2.0]# cat /etc/redhat-release
CentOS release 6.2 (Final)
[root@nagiospoc nagios-3.2.0]# make all
cd ./base && make
make[1]: Entering directory `/root/nagios-3.2.0/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
In file included from checks.c:40:
../include/epn_nagios.h:11:20: error: EXTERN.h: No such file or directory
../include/epn_nagios.h:12:18: error: perl.h: No such file or directory
In file included from checks.c:40:
../include/epn_nagios.h:31: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âvoidâ
checks.c: In function ârun_async_service_checkâ:
checks.c:356: error: âSVâ undeclared (first use in this function)
checks.c:356: error: (Each undeclared identifier is reported only once
checks.c:356: error: for each function it appears in.)
checks.c:356: error: âplugin_hndlr_crâ undeclared (first use in this function)
checks.c:357: error: âSTRLENâ undeclared (first use in this function)
checks.c:357: error: expected â;â before ân_aâ
checks.c:363: error: âdSPâ undeclared (first use in this function)
checks.c:557: error: âENTERâ undeclared (first use in this function)
checks.c:558: error: âSAVETMPSâ undeclared (first use in this function)
checks.c:559: error: âSPâ undeclared (first use in this function)
checks.c:564: error: âPUTBACKâ undeclared (first use in this function)
checks.c:568: error: âG_SCALARâ undeclared (first use in this function)
checks.c:568: error: âG_EVALâ undeclared (first use in this function)
checks.c:570: error: âSPAGAINâ undeclared (first use in this function)
checks.c:572: error: âERRSVâ undeclared (first use in this function)
checks.c:581: error: âPOPsâ undeclared (first use in this function)
checks.c:634: error: âFREETMPSâ undeclared (first use in this function)
checks.c:635: error: âLEAVEâ undeclared (first use in this function)
checks.c:713: error: âG_ARRAYâ undeclared (first use in this function)
checks.c:717: error: âPOPpxâ undeclared (first use in this function)
checks.c:718: error: âPOPiâ undeclared (first use in this function)
make[1]: *** [checks.o] Error 1
make[1]: Leaving directory `/root/nagios-3.2.0/base'
make: *** [all] Error 2
Thanks
Saikrishna