按照快速启动指南中的说明,尝试为Nagios安装Merlin
当我运行'make‘命令时,会得到以下错误:
sh gen-version.sh > version.c
CC version.o
LINK merlin.so
CC status.o
In file included from daemon.h:11,
from status.c:1:
sql.h:4:21: error: dbi/dbi.h: No such file or directory
In file included from daemon.h:11,
from status.c:1:
sql.h:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SQL_RESULT’
sql.h:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘sql_get_result’
status.c:28: error: expected ‘)’ before ‘result’
status.c: In function ‘prime_host_states’:
status.c:80: warning: implicit declaration of function ‘store_object_states’
status.c:80: warning: implicit declaration of function ‘sql_get_result’
status.c:80: warning: assignment makes pointer from integer without a cast
status.c: In function ‘prime_service_states’:
status.c:95: warning: assignment makes pointer from integer without a cast
make: *** [status.o] Error 1我找不到任何关于如何修复这个错误的东西。我用的是RHEL 5.5,我该怎么解决这个问题?
发布于 2011-06-09 18:52:05
yum whatprovides '*/dbi/dbi.h'然后选择返回的最合适的包,并安装它。
https://serverfault.com/questions/278882
复制相似问题