ubuntu10.04 nagios-3.3.1 安装出错解决方法
13 Sep 2011ubuntu10.04(先安装PHP5)下编译安装nagios-3.3.1时出现以下错误
make[2]: 正在进入目录 `/root/nagios/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install: 无法获取"nagios" 的文件状态(stat): 没有那个文件或目录
make[2]: *** [install-basic] 错误 1
make[2]:正在离开目录 `/root/nagios/base'
make[1]: *** [install] 错误 2
make[1]:正在离开目录 `/root/nagios/base'
make: *** [install] 错误 2
感觉应该是makefile出了问题,具体解决办法如下:
./configure
sed -i 's:for file in includes/rss/\*;:for file in includes/rss/\*.\*;:g' ./html/Makefile
sed -i 's:for file in includes/rss/extlib/\*;:for file in includes/rss/extlib/\*.\*;:g' ./html/Makefile
make all
make install
make install-init
make install-config
make install-commandmode