• Increase font size
  • Default font size
  • Decrease font size

Mysql

How to:Cannot find libmysqlclient_r

 Description:

------------Please accept my apologies if this is already reported - I searched anddidn't find it.When configuring PHP for x86_64, it is necessary to use:--with-libdir=lib64When you compile MySQL from source, it does not place its files inlib64, but rather lib.MySQL was configured using:--prefix=/usr/local/mysqlConfiguring PHP using:--with-mysql=/usr/local/mysqlfails with this:checking for MySQL support... yeschecking for specified location of the MySQL UNIX socket.....

 

configure: error: Cannot find libmysqlclient_r under /usr/local/mysql

 When I tried to run configure of PHP-5.2.8 (after installing MySQL-community 5.1.30) using

$./configure --with-mysql=/usr/bin/

I had the following problem:
---
checking for MySQL UNIX socket location... no
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
---

Then I saw that libmysql client was in /usr/lib64/ instead of /usr/lib/. So the right way to run configure is:

./configure --with-mysql=/usr/bin/...

 
  • «
  •  Start 
  •  Prev 
  •  1 
  •  2 
  •  Next 
  •  End 
  • »
Page 1 of 2