2013-04-26 65 views
0

我在安裝nagios服務器時遇到問題。我不是Linux的鬍子,但我知道一些基本知識,但我不確定從哪裏去。Nagios Make All Error 2

我想我已經安裝了所有的依賴關係,並且設置了其他所有的東西,配置看起來很好(我一直在遵循W Barth的Nagios指南(第2版))它只是當我運行「make所有「它錯誤了。

我正在運行CentOS 6.4最小安裝。

這裏的錯誤提前

cd ./base && make 
make[1]: Entering directory `/usr/local/src/nagios/base' 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c 
In file included from checks.c:41: 
../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:41: 
../include/epn_nagios.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ 
checks.c: In function ‘run_async_service_check’: 
checks.c:355: error: ‘SV’ undeclared (first use in this function) 
checks.c:355: error: (Each undeclared identifier is reported only once 
checks.c:355: error: for each function it appears in.) 
checks.c:355: error: ‘plugin_hndlr_cr’ undeclared (first use in this function) 
checks.c:361: 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: warning: implicit declaration of function ‘PUSHMARK’ 
checks.c:559: error: ‘SP’ undeclared (first use in this function) 
checks.c:560: warning: implicit declaration of function ‘XPUSHs’ 
checks.c:560: warning: implicit declaration of function ‘sv_2mortal’ 
checks.c:560: warning: implicit declaration of function ‘newSVpv’ 
checks.c:564: error: ‘PUTBACK’ undeclared (first use in this function) 
checks.c:568: warning: implicit declaration of function ‘call_pv’ 
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: warning: implicit declaration of function ‘SvTRUE’ 
checks.c:572: error: ‘ERRSV’ undeclared (first use in this function) 
checks.c:581: error: ‘POPs’ undeclared (first use in this function) 
checks.c:584: warning: implicit declaration of function ‘SvPVX’ 
checks.c:629: warning: implicit declaration of function ‘newSVsv’ 
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 `/usr/local/src/nagios/base' 
make: *** [all] Error 2 

感謝。

回答

0
[email protected]:~$ CD NAGIOS 
[email protected]:~$ MAKE CLEAN 
[email protected]:~$ ./CONFIGURE --PREFIX=/OPT/NAGIOS-PRIMARY --WITH-NAGIOS-USER=NAGIOS --WITH-NAGIOS-GROUP=NAGIOS 
[email protected]:~$ MAKE ALL 
[email protected]:~$ SED -I 'S:FOR FILE IN INCLUDES/RSS/\*;:FOR FILE IN INCLUDES/RSS/\*.\*;:G' ./HTML/MAKEFILE 
[email protected]:~$ MAKE INSTALL 
[email protected]:~$ CP DAEMON-INIT /ETC/INIT.D/NAGIOS-PRIMARY 
[email protected]:~$ CHMOD +X /ETC/INIT.D/NAGIOS-PRIMARY 
[email protected]:~$ MAKE INSTALL-CONFIG 
[email protected]:~$ MAKE INSTALL-COMMANDMODE 
[email protected]:~$ CP SAMPLE-CONFIG/HTTPD.CONF /ETC/APACHE2/CONF.D/NAGIOS-PRIMARY.CONF 
[email protected]:~$ HTPASSWD –C /OPT/NAGIOS-PRIMARY/ETC/HTPASSWD.USERS NAGIOSADMIN 
[email protected]:~$ VI /ETC/APACHE2/CONF.D/NAGIOS-PRIMARY.CONF (set paths correctly) 
[email protected]:~$ VI /OPT/NAGIOS-PRIMARY/SHARE/CONFIG.INC.PHP (idemdito) 
[email protected]:~$ /ETC/INIT.D/APACHE2 RELOAD 

我想這事做與SED行,我有同樣的問題和SED命令做的工作;)

相關問題