problem on install ndoutils with nagios 4.0.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
flyinsea
Posts: 1
Joined: Sun May 25, 2014 10:27 pm

problem on install ndoutils with nagios 4.0.4

Post by flyinsea »

On my centos 6.4, I have install mysql and mysql-devel, like this :
~]$ rpm -qa | grep ^mysql
mysql-test-5.1.73-3.el6_5.x86_64
mysql-server-5.1.73-3.el6_5.x86_64
mysql-libs-5.1.73-3.el6_5.x86_64
mysql-bench-5.1.73-3.el6_5.x86_64
mysql-5.1.73-3.el6_5.x86_64
mysql-devel-5.1.73-3.el6_5.x86_64

but when I configure in ndoutils dir,
ndoutils-1.5.2]$ ./configure --prefix=/usr/local/nagios/ --enable-mysql --with-ndo2db-user=nagios --with-ndo2db-group=nagios

There is a problem which is the following:
checking for linker flags for loadable modules... -shared
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient... no


*** MySQL library could not be located... **************************

You chose to compile NDOutils with MySQL support, but I was unable to
locate the MySQL library on your system. If the library is
installed, use the --with-mysql-lib argument to specify the
location of the MySQL library.
installed, use the --with-mysql=DIR argument to specify the
location of the MySQL library, We assume mysql_config is in DIR/dir
NOTE: After you install the necessary libraries on your system:
1. Make sure /etc/ld.so.conf has an entry for the directory in
which the MySQL libraries are installed.
2. Run 'ldconfig' to update the run-time linker options.
3. Run 'make devclean' in the NDBXT distribution to clean out
any old references to your previous compile.
4. Rerun the configure script.

TIP: Try the following....
./configure --with-mysql=/usr/lib/mysql

********************************************************************

How could I fix it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: problem on install ndoutils with nagios 4.0.4

Post by scottwilkerson »

The TIP says
--with-mysql=/usr/lib/mysql
First, make sure you are root, then I'd try

Code: Select all

./configure --prefix=/usr/local/nagios/ --enable-mysql --with-mysql=/usr/lib/mysql --with-ndo2db-user=nagios --with-ndo2db-group=nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked