Redhat

安裝 Merlin -“在 daemon.h:11 包含的文件中,來自 status.c:1: sql.h:4:21: 錯誤: dbi/dbi.h: 沒有這樣的文件或目錄”RH_和大號RH和大號RHEL

  • June 9, 2011

嘗試按照快速入門指南
中的說明為 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 上,我該如何解決這個問題?

yum whatprovides '*/dbi/dbi.h'

然後選擇返回的最合適的包,並安裝它。

引用自:https://serverfault.com/questions/278882