Configure Error Cannot Find Libmysqlclient Under /usr/local/mysql
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the note that the mysql client library is not bundled anymore workings and policies of this site About Us Learn more about configure error cannot find mysql header files under usr local mysql Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions libmysqlclient_r Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. configure: error: cannot find mysql header files under /usr/bin/ Join them; it only takes a minute: Sign up Cannot find libmysqlclient under /usr. while build PHP 5.2 from source on Ubuntu 12.4 up vote 10 down vote favorite 2 I was trying to build PHP 5.2.17 from source on Ubuntu 12.4 64bit using this configuration: ./configure --prefix=/opt/php5.2 --with-config-file-path=/opt/php5.2 --with-mysql but I keep getting this error: configure: error: Cannot
Configure Error Cannot Find Libmysqlclient Under /usr Centos
find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! Any Idea how to resolve this? EDIT1: I minimized the configure command so it just focuses to mysql. also I'm running a 64bit version of ubuntu. EDIT2: tried running ldconfig -v |grep mysql and here is the output # ldconfig -v |grep mysql /sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once /sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/libnss_db.so: No such file or directory libmysqlclient.so.18 -> libmysqlclient_r.so.18.0.0 libmysqlpp.so.3 -> libmysqlpp.so.3.1.0 php ubuntu installation share|improve this question edited Jun 21 '12 at 9:23 asked Jun 21 '12 at 8:23 farzam 4402516 1 I guess you need to tell configure where the directory of it is. - Looks like this is not a question but a Google request: php configure: cannot find libmysqlclient (search: PHP configure libmysqlclient path). –hakre Jun 21 '12 at 8:25 Do you have any idea where it is located? I tried finding it and here is the result: `./usr/share/doc/libmysqlclient-dev ./usr/share/doc/libmysqlclient18 ./usr/lib/x86_64-linux-gnu/libmysqlclient.so ./usr/lib/x86_64-linux-gnu/libmysqlclient.a ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18 ./usr/lib/x86_64-linux-
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About
Mysqlnd
Us Learn more about Stack Overflow the company Business Learn more about hiring configure: error: cannot find openssl's libraries developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are http://stackoverflow.com/questions/11134220/cannot-find-libmysqlclient-under-usr-while-build-php-5-2-from-source-on-ubuntu voted up and rise to the top Cannot find libmysqlclient when compiling php5 on dreamhost [closed] up vote 1 down vote favorite 2 I'm trying to compile php5 on dreamhost, after doing what http://wiki.dreamhost.com/index.php/Installing_PHP5 said, I had compiled all the components except php5 itself. When running $ ./configure ${PHPFEATURES} It reported error configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not http://serverfault.com/questions/68657/cannot-find-libmysqlclient-when-compiling-php5-on-dreamhost bundled anymore! But actually I find that /usr/lib64/lib64/libmysqlclient.so.15.0.0 exists. How to help configure find it? Many thanks. mysql php share|improve this question edited Sep 25 '09 at 10:54 asked Sep 25 '09 at 10:45 ZelluX 2451311 closed as off-topic by Michael Hampton♦ Apr 8 '15 at 15:54 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – Michael HamptonIf this question can be reworded to fit the rules in the help center, please edit the question. add a comment| 3 Answers 3 active oldest votes up vote 2 down vote accepted you could try give different path for mysql, ie: --with-mysql=/usr/lib64 m share|improve this answer answered Sep 25 '09 at 11:13 Systemsninja 696310 I have modified the line to --with-mysql=/usr/lib64, but the error still exists, and it still tries to find the file under /usr not /usr/lib64 –ZelluX Sep 25 '09 at 11:30 add a comment| up vote 1 down vote The MysqL installation includes a script called mysql_
Post navigation ← Previous Next → error: Cannot find libmysqlclient_r under /usr/local/mysql - PHP Compile http://www.sudosu.in/2013/04/error-cannot-find-libmysqlclientr-under.html Error Posted on Sunday, April 28, 2013 Error: In a x86_64 OS, While configuring PHP using: --with-mysql=/usr/local/mysql checking for specified location of the MySQL UNIX socket... https://bugs.php.net/bug.php?id=36073 no checking for MySQL UNIX socket location... no configure: error: Cannot find libmysqlclient_r under /usr/local/mysql. Note that the MySQL client library is not bundled anymore! Solution: cannot find When configuring PHP for x86_64, it is necessary to use: --with-libdir=lib64 When you compile MySQL from source, it does not place its files in lib64, but rather lib. Here in my case i have configured MySQL using: --prefix=/usr/local/mysql When you entered the /usr/local/mysql directory, you can find 'lib' in there, but configure error cannot in the 64 bit os, PHP compilation forced to check for 'lib64' directory in mysql home directory to compile php with mysql. ie, When PHP is configured using --with-mysql=/usr/local/mysql and --with-libdir=lib64, it should search for /usr/local/mysql/lib64, since there is no such directory there encountered an error in PHP compile. Since MYSQL is compiled from source, there will not be a 'lib64', the following steps will solve this problem. [root@vps ~]# cd /usr/local/mysql #Change directory to mysql's home directory [root@vps mysql]# ln -s lib lib64 #Create a link for lib to lib64 That's it... This entry was posted in LAMP by Arun Ghosh. Bookmark the permalink. Post a Comment About Me Arun Ghosh View my complete profile cPanel (50) Kloxo (15) Windows (11) OpenVZ (9) LAMP (7) Plesk (7) Railo (7) Postfix (5) ColdFusion (4) Exim (4) Qmail (4) Bash_Script (3) LXC (2) MAC (2) MDaemon (2) Xen (1) Join me on Google+
UTC Modified: 2010-10-28 09:51 UTC Votes:10 Avg. Score:3.9 ± 1.1 Reproduced:7 of 8 (87.5%) Same Version:4 (57.1%) Same OS:6 (85.7%) From: chris at spawnordie dot com Assigned: mysql Status: Wont fix Package: MySQL related PHP Version: 5.3.2 OS: Linux/Any Private report: No CVE-ID: View Add Comment Developer Edit Have you experienced this issue? yes no don't know Rate the importance of this bug to you: high low Are you using the same PHP version? yes no Are you using the same operating system? yes no [2006-01-18 22:14 UTC] chris at spawnordie dot com Description: ------------ Please accept my apologies if this is already reported - I searched and didn't find it. When configuring PHP for x86_64, it is necessary to use: --with-libdir=lib64 When you compile MySQL from source, it does not place its files in lib64, but rather lib. MySQL was configured using: --prefix=/usr/local/mysql Configuring PHP using: --with-mysql=/usr/local/mysql fails with this: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no configure: error: Cannot find libmysqlclient under /usr/local/mysql. Note that the MySQL client library is not bundled anymore! This fixes the problem: cd /usr/local/mysql ln -s lib lib64 When PHP is configured using --with-mysql=