# Centos 5.5 64bit correct way to resolve libmysqlclient.so conflict /usr/lib64/ vs /usr/lib64/mysql ?

**URL:** <https://forums.percona.com/t/centos-5-5-64bit-correct-way-to-resolve-libmysqlclient-so-conflict-usr-lib64-vs-usr-lib64-mysql/1450>\
**Category:** Other MySQL® Questions\
**Created:** [July 10, 2010, 11:50am UTC](https://forums.percona.com/t/centos-5-5-64bit-correct-way-to-resolve-libmysqlclient-so-conflict-usr-lib64-vs-usr-lib64-mysql/1450 "2010-07-10T11:50:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![p4guru](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@p4guru](https://forums.percona.com/u/p4guru)\
**Post date:** [July 10, 2010, 11:50am UTC](https://forums.percona.com/t/centos-5-5-64bit-correct-way-to-resolve-libmysqlclient-so-conflict-usr-lib64-vs-usr-lib64-mysql/1450/1 "2010-07-10T11:50:57Z")

</div>

Trying to compile PHP 5.3.2 on CentOS 5.5 64bit with Percona 5.1.47 rel11.1 64bit when i try either

./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/bin/mysql\_config --with-libdir=lib64

or

./configure --with-apxs2=/usr/sbin/apxs --with-mysql --with-mysqli=/usr/bin/mysql\_config

or

./configure --with-apxs2=/usr/sbin/apxs --with-mysql/usr --with-mysqli=/usr/bin/mysql\_config --with-libdir=lib64

during make command i get

-lxml2 -lz -lm -lcrypt -o libphp5.lagcc: /usr/lib64/mysql/libmysqlclient.so: No such file or directorymake: \*\*\* [libphp5.la] Error 1

libmysql\* files only exist in /usr/lib64 but php is looking for /usr/lib64/mysql directory as /usr/lib is empty.

ls -lah /usr/lib64/ | grep libmysqllrwxrwxrwx 1 root root 26 Jul 10 01:22 libmysqlclient\_r.so → libmysqlclient\_r.so.16.0.0lrwxrwxrwx 1 root root 26 Jul 10 01:22 libmysqlclient\_r.so.16 → libmysqlclient\_r.so.16.0.0-rwxr-xr-x 1 root root 4.9M Jun 25 20:21 libmysqlclient\_r.so.16.0.0lrwxrwxrwx 1 root root 24 Jul 10 01:22 libmysqlclient.so → libmysqlclient.so.16.0.0lrwxrwxrwx 1 root root 24 Jul 10 01:22 libmysqlclient.so.16 → libmysqlclient.so.16.0.0-rwxr-xr-x 1 root root 4.9M Jun 25 20:19 libmysqlclient.so.16.0.0ls -lah /usr/lib/ | grep libmysql

I found this method [http://default.io/2009/11/working-around-the-percona-mysql-r](http://default.io/2009/11/working-around-the-percona-mysql-r) pm-dependancy-conflict-on-rhelcentos-5/ but not sure if it’s best way to do it ? Or a symlink ?? Got the exact symlink link I have to run ?

what’s best ?

thanks

---

<div class="post-metadata">

**Author:** ![ervaneet82](https://avatars.discourse-cdn.com/v4/letter/e/c68b51/32.png) [@ervaneet82](https://forums.percona.com/u/ervaneet82)\
**Post date:** [August 17, 2010, 10:03pm UTC](https://forums.percona.com/t/centos-5-5-64bit-correct-way-to-resolve-libmysqlclient-so-conflict-usr-lib64-vs-usr-lib64-mysql/1450/2 "2010-08-17T22:03:58Z")

</div>

Hello,

Kindly check in your system the mysql is 64 bit install or 32 bit.

rpm -qa | grep -i mysql

This problem usually comes when you have install mysql 32 bit.

I think you are trying to intall php.

symlink can be work. But it will create the problem further.

Can you give me the mysql installation procedure how you did that.

-Vaneet Gupta

---

<div class="post-metadata">

**Author:** ![carpii](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@carpii](https://forums.percona.com/u/carpii)\
**Post date:** [August 19, 2010, 10:02am UTC](https://forums.percona.com/t/centos-5-5-64bit-correct-way-to-resolve-libmysqlclient-so-conflict-usr-lib64-vs-usr-lib64-mysql/1450/3 "2010-08-19T10:02:45Z")

</div>

I dont use percona build, but I found on Centos 64 bit I had to add the following to php configure…

–libdir=/usr/lib64 --with-libdir=lib64

Might be worth trying the --libdir param, which you are missing at the moment.
