NDOUtils and Mysql libraries assistance needed

Michael Friedrich michael.friedrich at univie.ac.at
Thu Jun 25 15:28:30 CEST 2009


Once again,

./configure --help

gives you all the help you need.

Try

ls /usr/lib/mysql | grep libmysqlclient.so

and check the output. If there is nothing found, try

find /usr/lib/ | grep libmysqlclient.so

The path to the found file (in case) is the one you need for configure e.g.

./configure --with-mysql-lib=/usr/lib/mysql

Same thing for mysql.h

find /usr/include/ | grep 'mysql.h'

and adjust this to your needs e.g.

./configure --with-mysql-lib=/usr/lib/mysql 
--with-mysql-inc=/usr/include/mysql

and then give the whole configure output.

but PLEASE REPLY, do _not_ start another thread.

Kind regards,
Michael



Natalie Aloi wrote the following on 25.06.2009 14:57:
> Hi I am having trouble getting ndoutils to work
> during my install I found this information logged:
>  
> *** MySQL library could not be located... **************************
> You chose to compile NDBXT 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.
> 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-lib=/usr/lib/mysql
> I have a question about step 1. When I more the file all it has in it 
> is this information:
>  
> [root at nagios etc]# more ld.so.conf
> include ld.so.conf.d/*.conf
>  
> My question is what is the syntax of the libraries I have no idea what 
> to add into this file.
> Do I just add "/usr/lib/mysql" ?
>  
> I am running Fedora 9
> mysql has been installed (see below:)
> [root at nagios etc]# rpm -qa | grep mysql
> qt-mysql-4.5.0-14.fc9.i386
> mysql-administrator-5.0r12-8.fc9.i386
> mysql-server-5.0.77-1.fc9.i386
> mysql-devel-5.0.77-1.fc9.i386
> mysql-connector-odbc-3.51.24r1071-1.fc9.i386
> mysql-connector-java-3.1.12-5.fc9.i386
> php-mysql-5.2.6-2.fc9.i386
> mysql-5.0.77-1.fc9.i386
> libdbi-dbd-mysql-0.8.3-2.fc9.i386
> mysql-libs-5.0.77-1.fc9.i386
> nagios-plugins-mysql-1.4.13-9.fc9.i386
> mysql-gui-common-5.0r12-8.fc9.i386
> below is infor from mysql for nagios db for ndoutils....
> mysql> use nagios
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
> Database changed
> mysql> show tables;
> +-------------------------------------+
> | Tables_in_nagios                    |
> +-------------------------------------+
> | ndo_acknowledgements                |
> | ndo_commands                        |
> | ndo_commenthistory                  |
> | ndo_comments                        |
> | ndo_configfiles                     |
> | ndo_configfilevariables             |
> | ndo_conninfo                        |
> | ndo_contact_addresses               |
> | ndo_contact_notificationcommands    |
> | ndo_contactgroup_members            |
> | ndo_contactgroups                   |
> | ndo_contactnotificationmethods      |
> | ndo_contactnotifications            |
> | ndo_contacts                        |
> | ndo_customobjectvariables           |
> | ndo_downtimehistory                 |
> | ndo_eventhandlers                   |
> | ndo_externalcommands                |
> | ndo_flappinghistory                 |
> | ndo_host_contactgroups              |
> | ndo_host_parenthosts                |
> | ndo_hostchecks                      |
> | ndo_hostdependencies                |
> | ndo_hostescalation_contactgroups    |
> | ndo_hostescalations                 |
> | ndo_hostextinfo                     |
> | ndo_hostgroup_members               |
> | ndo_hostgroups                      |
> | ndo_hosts                           |
> | ndo_hoststatus                      |
> | ndo_instances                       |
> | ndo_logentries                      |
> | ndo_notifications                   |
> | ndo_objects                         |
> | ndo_processevents                   |
> | ndo_programstatus                   |
> | ndo_runtimevariables                |
> | ndo_scheduleddowntime               |
> | ndo_service_contactgroups           |
> | ndo_servicechecks                   |
> | ndo_servicedependencies             |
> | ndo_serviceescalation_contactgroups |
> | ndo_serviceescalations              |
> | ndo_serviceextinfo                  |
> | ndo_servicegroup_members            |
> | ndo_servicegroups                   |
> | ndo_services                        |
> | ndo_servicestatus                   |
> | ndo_statehistory                    |
> | ndo_systemcommands                  |
> | ndo_timedeventqueue                 |
> | ndo_timedevents                     |
> | ndo_timeperiod_timeranges           |
> | ndo_timeperiods                     |
> +-------------------------------------+
> 54 rows in set (0.00 sec)
> mysql>
>  
> Network Operations Center Manager
> Experis Data Center LLC
> 8209 Valley Pike
> PO Box 535
> Middletown,VA 22645
> phone:540-869-8702
> cell:240-988-3267
> fax:540-869-8710
> e-mail:naloi at experisdatacenters.com
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

-- 
DI (FH) Michael Friedrich
michael.friedrich at univie.ac.at
Tel: +43 1 4277 14359

Vienna University Computer Center
Universitaetsstrasse 7 
A-1010 Vienna, Austria  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090625/0b968040/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list