Installation Problem


#1

while Installing plugin nagios-plugins-1.4.4 i followed below procedure
i created libexec folder in usr/local/nagios according to documentation
cd to nagios-plugins-1.4.4 >
nagios-plugins-1.4.4 > ./configure --prefix=/usr/local/nagios/libexec
nagios-plugins-1.4.4 >make
nagios-plugins-1.4.4 >make install

then after this if i see libexec folder ,it is empty and while installing plugin is is giving following errors:

check_mysql.c:51:19: mysql.h: No such file or directory
check_mysql.c:52:20: errmsg.h: No such file or directory
check_mysql.c:58: error: MYSQL_PORT' undeclared here (not in a function) check_mysql.c: In functionmain’:
check_mysql.c:73: error: MYSQL' undeclared (first use in this function) check_mysql.c:73: error: (Each undeclared identifier is reported only once check_mysql.c:73: error: for each function it appears in.) check_mysql.c:73: error: syntax error before "mysql" check_mysql.c:74: error:MYSQL_RES’ undeclared (first use in this function)
check_mysql.c:74: error: res' undeclared (first use in this function) check_mysql.c:75: error:MYSQL_ROW’ undeclared (first use in this function)
check_mysql.c:75: error: syntax error before "row"
check_mysql.c:91: error: mysql' undeclared (first use in this function) check_mysql.c:93: error:MYSQL_READ_DEFAULT_GROUP’ undeclared (first use in this function)
check_mysql.c:97: error: CR_UNKNOWN_HOST' undeclared (first use in this function) check_mysql.c:99: error:CR_VERSION_ERROR’ undeclared (first use in this function)
check_mysql.c:101: error: CR_OUT_OF_MEMORY' undeclared (first use in this function) check_mysql.c:103: error:CR_IPSOCK_ERROR’ undeclared (first use in this function)
check_mysql.c:105: error: CR_SOCKET_CREATE_ERROR' undeclared (first use in this function) check_mysql.c:146: error:row’ undeclared (first use in this function)
check_mysql.c:165: error: MYSQL_FIELD' undeclared (first use in this function) check_mysql.c:165: error:fields’ undeclared (first use in this function)

in my system already running mysql
do i need to uninstall ?
please give me solution why it is liexec folder empty and
why mysql errors coming?

thank you


#2

Run ./configure --help and see what it says about --prefix. That is the problem.
Your mysql problem is due to not having the mysql-devel files installed.