Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to install Merlin for Nagios, following the instructions in the quick start guide
When I run the 'make' command I get the following errors:

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

I couldn't find anything about how to fix this error. I'm on RHEL 5.5, how do I fix this?

share|improve this question
up vote 1 down vote accepted
yum whatprovides '*/dbi/dbi.h'

Then pick the most appropriate package returned, and install it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.