安装nagios3.3.1报错make[1]: *** [install] Error 1

简介:

 今天安装nagios3.3.1,不是第一次安装了,之前都很顺利,这次安装的时候,在执行命令make install的时候,报错了。大致如下

 


 

 
  1. [root@magedu nagios]# make install 
  2. cd ./base && make install 
  3. make[1]: Entering directory `/root/nagios/base' 
  4. make install-basic 
  5. make[2]: Entering directory `/root/nagios/base' 
  6. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/bin 
  7. /usr/bin/install -c -m 774 -o nagios -g nagios nagios /var/www/html/nagios/bin 
  8. /usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /var/www/html/nagios/bin 
  9. make[2]: Leaving directory `/root/nagios/base' 
  10. make strip-post-install 
  11. make[2]: Entering directory `/root/nagios/base' 
  12. /usr/bin/strip /var/www/html/nagios/bin/nagios 
  13. /usr/bin/strip /var/www/html/nagios/bin/nagiostats 
  14. make[2]: Leaving directory `/root/nagios/base' 
  15. make[1]: Leaving directory `/root/nagios/base' 
  16. cd ./cgi && make install 
  17. make[1]: Entering directory `/root/nagios/cgi' 
  18. make install-basic 
  19. make[2]: Entering directory `/root/nagios/cgi' 
  20. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/sbin 
  21. for file in *.cgi; do \ 
  22.         /usr/bin/install -c -m 775 -o nagios -g nagios $file /var/www/html/nagios/sbin; \ 
  23.     done 
  24. make[2]: Leaving directory `/root/nagios/cgi' 
  25. make strip-post-install 
  26. make[2]: Entering directory `/root/nagios/cgi' 
  27. for file in *.cgi; do \ 
  28.         /usr/bin/strip /var/www/html/nagios/sbin/$file; \ 
  29.     done 
  30. make[2]: Leaving directory `/root/nagios/cgi' 
  31. make[1]: Leaving directory `/root/nagios/cgi' 
  32. cd ./html && make install 
  33. make[1]: Entering directory `/root/nagios/html' 
  34. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share 
  35. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/media 
  36. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/stylesheets 
  37. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/contexthelp 
  38. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/docs 
  39. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/docs/images 
  40. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/images 
  41. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/images/logos 
  42. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/includes 
  43. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/includes/rss 
  44. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/includes/rss/extlib 
  45. /usr/bin/install -c -m 775 -o nagios -g nagios -d /var/www/html/nagios/share/ssi 
  46. /usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /var/www/html/nagios/share 
  47. rm -f /var/www/html/nagios/share/index.html 
  48. rm -f /var/www/html/nagios/share/main.html 
  49. rm -f /var/www/html/nagios/share/side.html 
  50. for file in *.php; \ 
  51.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share; done 
  52. for file in stylesheets/*.css; \ 
  53.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/stylesheets; done 
  54. for file in contexthelp/*.html; \ 
  55.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/contexthelp; done 
  56. for file in images/*.gif; \ 
  57.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/images; done 
  58. for file in images/*.jpg; \ 
  59.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/images; done 
  60. for file in images/*.png; \ 
  61.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/images; done 
  62. for file in images/*.ico; \ 
  63.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/images; done 
  64. for file in images/logos/*.*; \ 
  65.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/images/logos; done 
  66. for file in includes/*.*; \ 
  67.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/includes; done 
  68. for file in includes/rss/*; \ 
  69.     do /usr/bin/install -c -m 664 -o nagios -g nagios $file /var/www/html/nagios/share/includes/rss; done 
  70. /usr/bin/install: omitting directory `includes/rss/extlib' 
  71. /usr/bin/install: omitting directory `includes/rss/htdocs' 
  72. /usr/bin/install: omitting directory `includes/rss/scripts' 
  73. make[1]: *** [install] Error 1 
  74. make[1]: Leaving directory `/root/nagios/html' 
  75. make: *** [install] Error 2 

 


很纠结啊,google了一下,有解决方案,好像是makefile里有语法错误,具体怎么导致的不清楚,执行完以下命令,就OK了

 

 

 
  1. # sed -i 's:for file in includes/rss/\*;:for file in includes/rss/\*.\*;:g' ./html/Makefile 
  2. # sed -i 's:for file in includes/rss/extlib/\*;:for file in includes/rss/extlib/\*.\*;:g' ./html/Makefile 
  3. 然后,执行以下命令,来完成安装。 
  4. # make fullinstall 

没什么技术含量,小记一下,免得以后再遇到同样的错误了,不知道该怎么办



本文转自 gm100861 51CTO博客,原文链接:http://blog.51cto.com/gm100861/841451


相关文章
|
10天前
|
Python
yum 安装报错 File "/usr/bin/yum", line 30
yum 安装报错 File "/usr/bin/yum", line 30
7 0
onfigure: error: cannot find install-sh, install.sh, or shtool in
onfigure: error: cannot find install-sh, install.sh, or shtool in
195 0
checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel pa
checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel pa
496 0
configure: error: zlib not installed
configure: error: zlib not installed
87 0
构建freeswitch, make cd-moh-install提示文件错误
构建freeswitch, make cd-moh-install提示文件错误
91 0
|
Unix Shell Linux
./configure、make、make install 命令详解
这些都是典型的使用GNU的AUTOCONF和AUTOMAKE产生的程序的安装步骤 一、基本信息 1、./configure 是用来检测你的安装平台的目标特征的。
3736 0