Hi,

I think your environment variable LD_LIBRARY_PATH is not pointing to 
/usr/lib64/ directory.

Please run following command and try.

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH: /usr/lib64/

-----Original Message-----
From: pmacct-discussion [mailto:pmacct-discussion-boun...@pmacct.net] On Behalf 
Of Yann Belin
Sent: Tuesday, December 13, 2016 2:47 PM
To: pmacct-discussion@pmacct.net
Subject: [pmacct-discussion] Configure with MySQL / MariaDB support

Hello,

I am trying to install pmacct with MySQL / MariaDB support but [./configure 
--enable-mysql] fails with the message below.

*-*-*-*-*
(...)
checking for mysql_init in -lmysqlclient... no
configure: error: ERROR: missing MySQL client library
*-*-*-*-*

I have proper libraries and devel packages installed, any idea what may be 
causing this?

[root@xxxx pmacct-1.6.1]# locate libmysqlclient /usr/lib64/libmysqlclient.so
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient.so.16
/usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so
/usr/lib64/libmysqlclient_r.so.15
/usr/lib64/libmysqlclient_r.so.15.0.0
/usr/lib64/libmysqlclient_r.so.16
/usr/lib64/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0

[root@xxxx pmacct-1.6.1]# ldconfig -p | grep mysqlclient
        libmysqlclient_r.so.16 (libc6,x86-64) => /lib64/libmysqlclient_r.so.16
        libmysqlclient_r.so.15 (libc6,x86-64) => /lib64/libmysqlclient_r.so.15
        libmysqlclient.so.18 (libc6,x86-64) => /lib64/libmysqlclient.so.18
        libmysqlclient.so.16 (libc6,x86-64) => /lib64/libmysqlclient.so.16
        libmysqlclient.so.15 (libc6,x86-64) => /lib64/libmysqlclient.so.15
        libmysqlclient.so (libc6,x86-64) => /lib64/libmysqlclient.so

[root@xxxx pmacct-1.6.1]# rpm -qa | grep -i maria
MariaDB-devel-10.0.28-1.el7.centos.x86_64
MariaDB-client-10.0.27-1.el7.centos.x86_64
MariaDB-compat-10.0.27-1.el7.centos.x86_64
MariaDB-connect-engine-10.0.28-1.el7.centos.x86_64
MariaDB-common-10.0.27-1.el7.centos.x86_64
MariaDB-server-10.0.27-1.el7.centos.x86_64
MariaDB-shared-10.0.27-1.el7.centos.x86_64
[root@scrutinizer01 pmacct-1.6.1]#

Thanks in advance!


Yann

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to