I need help!cannot install nagios plugins 1.4.6

can someone tell me where I can find documentation about installing plugins?
i made libexec folder at /usr/local/nagios, what should I do next?
i do ./configure --prefix=/usr/local/nagios/ and then make all and this is the result

make all-recursive
make[1]: Entering directory /home/install/nagios-plugins-1.4.6' Making all in gl make[2]: Entering directory/home/install/nagios-plugins-1.4.6/gl’
make all-am
make[3]: Entering directory /home/install/nagios-plugins-1.4.6/gl' make[3]: Nothing to be done forall-am’.
make[3]: Leaving directory /home/install/nagios-plugins-1.4.6/gl' make[2]: Leaving directory/home/install/nagios-plugins-1.4.6/gl’
Making all in lib
make[2]: Entering directory /home/install/nagios-plugins-1.4.6/lib' Making all in tests make[3]: Entering directory/home/install/nagios-plugins-1.4.6/lib/tests’
make[3]: Nothing to be done for all'. make[3]: Leaving directory/home/install/nagios-plugins-1.4.6/lib/tests’
make[3]: Entering directory /home/install/nagios-plugins-1.4.6/lib' make[3]: Nothing to be done forall-am’.
make[3]: Leaving directory /home/install/nagios-plugins-1.4.6/lib' make[2]: Leaving directory/home/install/nagios-plugins-1.4.6/lib’
Making all in plugins
make[2]: Entering directory /home/install/nagios-plugins-1.4.6/plugins' if gcc -DLOCALEDIR=\"/usr/local/nagios/libexec/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include -I/usr/include/mysql -I/usr/include/mysql -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -g -O2 -MT check_mysql-check_mysql.o -MD -MP -MF ".deps/check_mysql-check_mysql.Tpo" -c -o check_mysql-check_mysql.otest -f ‘check_mysql.c’ || echo ‘./‘check_mysql.c; \ then mv -f ".deps/check_mysql-check_mysql.Tpo" ".deps/check_mysql-check_mysql.Po"; else rm -f ".deps/check_mysql-check_mysql.Tpo"; exit 1; fi 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 function main': 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:112: warning: passing arg 1 of strlen' makes pointer from integer without a cast check_mysql.c:112: warning: passing arg 2 ofmemcpy’ makes pointer from integer without a cast
check_mysql.c:112: warning: passing arg 1 of __strdup' makes pointer from integer without a cast check_mysql.c:116: error:CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
check_mysql.c:118: error: CR_SERVER_LOST' undeclared (first use in this function) check_mysql.c:120: error:CR_UNKNOWN_ERROR’ undeclared (first use in this function)
check_mysql.c:127: warning: passing arg 1 of strlen' makes pointer from integer without a cast check_mysql.c:127: warning: passing arg 2 ofmemcpy’ makes pointer from integer without a cast
check_mysql.c:127: warning: passing arg 1 of __strdup' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 ofstrlen’ makes pointer from integer without a cast
check_mysql.c:134: warning: passing arg 2 of memcpy' makes pointer from integer without a cast check_mysql.c:134: warning: passing arg 1 of__strdup’ makes pointer from integer without a cast
check_mysql.c:146: error: row' undeclared (first use in this function) check_mysql.c:147: warning: passing arg 1 ofstrlen’ makes pointer from integer without a cast
check_mysql.c:147: warning: passing arg 2 of memcpy' makes pointer from integer without a cast check_mysql.c:147: warning: passing arg 1 of__strdup’ makes pointer from integer without a cast
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)
make[2]: *** [check_mysql-check_mysql.o] Error 1
make[2]: Leaving directory /home/install/nagios-plugins-1.4.6/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/install/nagios-plugins-1.4.6’
make: *** [all] Error 2

could anyone help me?

hi all,

i’ve also a similar problem with nagios plugins 1.4.6 compilation, but not the same error

i have this error message :

Making install in po
make[1]: Entering directory /usr/src/nagios_installation/nagios-plugins-1.4.6/po' /bin/sh @MKINSTALLDIRS@ /usr/local/nagios/share @MKINSTALLDIRS@: @MKINSTALLDIRS@: No such file or directory make[1]: *** [install-data-yes] Error 127 make[1]: Leaving directory/usr/src/nagios_installation/nagios-plugins-1.4.6/po’
make: *** [install-recursive] Error 1

my nagios version is 2.8
and it’s under debian 2.6.12-2-686

can you tell me what can i resolve the problem ?
i doubt of the nagios installation script, that why we can see the problem of the variable @MKINSTALLDIRS@

thank you by advance

best regards

sunfun

i cannot belive that there is nobody who knows what’s the problem.

dear sunfun,

we are alone:)

if anyone can help, PLEASE WRITE!

I vaguely remember getting that error message on a Fedora Core 6 box recently when trying to test build. Found out that I forgot to install some of the development packages for mySQL. I also made sure I updated them to any new version as well.