[debian-mysql] Bug#878340: libmariadbclient-dev-compat: mysqlclient.pc is not visible to pkg-config

Nikolay Dimitrov nikolay.dimitrov at retrohub.org
Thu Oct 12 22:47:19 UTC 2017


Package: libmariadbclient-dev-compat
Version: 10.1.26-0+deb9u1
Severity: important

Dear Maintainer,

I'm trying to compile a software that requires a mysql client library. CMake
is unable to detect that libmariadbclient-dev-compat package is installed on my
system, and running pkg-config against the package shows an error:

$ pkg-config --cflags mysqlclient
Package mysqlclient was not found in the pkg-config search path.
Perhaps you should add the directory containing `mysqlclient.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mysqlclient' found

It seems to me that libmariadbclient-dev-compat package installs mysqlclient.pc
at /usr/lib/x86_64-linux-gnu/, while pkg-config looks for .pc files at /usr/lib/
x86_64-linux-gnu/pkgconfig.

When I create a symlink mysqlclient.pc -> mariadb.pc located in /usr/lib/
x86_64-linux-gnu/pkgconfig, pkg-config is now able to detect the package:

$ pkg-config --cflags mysqlclient
-I/usr/include/mysql -I/usr/include/mysql/..

Can you please double-check whether mysqlclient.pc is installed at the proper path?

Kind regards,
Nikolay Dimitrov


-- System Information:
Debian Release: 9.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libmariadbclient-dev-compat depends on:
ii  libmariadbclient-dev  10.1.26-0+deb9u1

libmariadbclient-dev-compat recommends no packages.

libmariadbclient-dev-compat suggests no packages.

-- no debconf information



More information about the pkg-mysql-maint mailing list