Hello everybody.
Having weird error with sphinx, libmysqlclient and Percona Server.
When I try to run indexer, I’m getting:
sudo -u sphinx indexer --all --rotate (also tried as root of course)
Sphinx 2.1.8-release (rel21-r4675)
Copyright (c) 2001-2014, Andrew Aksyonoff
Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)
using config file ‘/etc/sphinx/sphinx.conf’…
indexing index ‘postsIndex’…
indexer: relocation error: indexer: symbol mysql_init, version libmysqlclient_18 not defined in file libmysqlclient.so.18 with link time reference
OS: CentOS 6.5
uname -a
Linux server 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64
x86_64 GNU/Linux
rpm -qa | grep Percona
Percona-Server-shared-51-5.1.73-rel14.11.603.rhel6.x86_64
Percona-Server-shared-55-5.5.37-rel35.0.el6.x86_64
Percona-Server-devel-55-5.5.37-rel35.0.el6.x86_64
Percona-Server-client-55-5.5.37-rel35.0.el6.x86_64
Percona-Server-server-55-5.5.37-rel35.0.el6.x86_64
rpm -qa | grep mysql
mysqlclient18-5.5.28-6.el6.art.x86_64
php-mysqlnd-5.3.28-4.el6.x86_64
Tried installing mariadb-libs instead of shared - result was the same. Tried linking also:
ln -s /usr/lib64/libmysqlclient.so.18.0.0 → /usr/lib64/libperconaserverclient.so.18.0.0 - no progress.
[root@horde~]# find /usr -name ‘libmysqlclient’
/usr/lib64/libmysqlclient_r.so.12
/usr/lib64/libmysqlclient_r.so.14.0.0
/usr/lib64/libmysqlclient.so.14
/usr/lib64/libmysqlclient_r.so.18.0.0
/usr/lib64/libmysqlclient.so.14.0.0
/usr/lib64/libmysqlclient_r.so.15
/usr/lib64/libmysqlclient_r.so.16
/usr/lib64/libmysqlclient.so.12.0.0
/usr/lib64/libmysqlclient_r.so.16.0.0
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient.so.15.0.0
/usr/lib64/libmysqlclient.so.16
/usr/lib64/libmysqlclient.so.15
/usr/lib64/libmysqlclient_r.so.14
/usr/lib64/libmysqlclient_r.so.12.0.0
/usr/lib64/libmysqlclient.so.12
/usr/lib64/mysql/libmysqlclient.so.18
/usr/lib64/mysql/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so.15.0.0
/usr/lib64/libmysqlclient.so.16.0.0
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
Any suggestions? Maybe someone faced the same and has a solution.
Thanks.