NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 21 forks source link

Incorrect argument in message when MySQL library could not be located #23

Closed box293 closed 7 years ago

box293 commented 7 years ago

When running configure, if the MySQL library cannot be located it directs you to use the --with-mysql-lib argument however a few lines later it suggests --with-mysql.

Checking the help shows that --with-mysql-lib does not exist and configure also complains if you use it "configure: WARNING: unrecognized options: --with-mysql-lib".

*** 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

********************************************************************
jfrickson commented 7 years ago

Fixed in branch 'maint' via commit https://github.com/NagiosEnterprises/ndoutils/commit/9e4d9b6cd18124b3f1d1067db8fd1673d12980f8