CustomBuild: howto install libmysqlclient.so.16

HindrikOxilion

Verified User
Joined
Sep 23, 2011
Messages
33
Hello all,

I've been looking to Icinga2 to monitor a lot of our (RHEL/CentOS/Alma) servers, which relies on the "nagios-plugins-mysql" package to allow the "check_mysql" command to assess the connection to MySQL/MariaDB on the host.

The current version of "nagios-plugins-mysql" depends on the "libmysqlclient.so.16" library, which is not available in all MySQL/MariaDB versions. Since MySQL/MariaDB is handled by CustomBuild for installation, and there's a global exclude for "mysql*" packages in yum.conf, I cannot simply install the "nagios-plugins-mysql" package. This leads to a dependency-error:

Error: Package: nagios-plugins-mysql-2.3.3-1.el6.x86_64 (epel)
Requires: libmysqlclient.so.16()(64bit)
Error: Package: nagios-plugins-mysql-2.3.3-1.el6.x86_64 (epel)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit)

So I need a way to install this library via CustomBuild somehow. For MySQL 5.1, this is contained in the "mysql-libs" package, but for higher MySQL/MariaDB versions this is another package "(MySQL|MariaDB)-shared-compat".

I would like to find a way to make CB install this in addition to the regular MySQL/MariaDB RPMs.

Does anyone here have some insights that might be helpful to my cause?

With kind regards,

Hindrik Deelstra
 
Last edited:
Back
Top