Error Cannot Find Libmysqlclient_r
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the configure error cannot find libmysqlclient under /usr centos workings and policies of this site About Us Learn more about configure error cannot find libmysqlclient under usr local mysql Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions cannot find mysql's libmysqlclient in /usr/lib 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. note that the mysql client library is not bundled anymore! 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
Cannot Find Mysql Header Files Under
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/
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux -
Configure: Error: Cannot Find Openssl's Libraries
Server php configure: cannot find libmysqlclient User Name Remember Me? Password mysqlnd Linux - Server This forum is for the discussion of Linux Software used in a server related context. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you will have the ability http://stackoverflow.com/questions/11134220/cannot-find-libmysqlclient-under-usr-while-build-php-5-2-from-source-on-ubuntu to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: http://www.linuxquestions.org/questions/linux-server-73/php-configure-cannot-find-libmysqlclient-582944/ Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. C
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 http://serverfault.com/questions/68657/cannot-find-libmysqlclient-when-compiling-php5-on-dreamhost OS, While configuring PHP using: --with-mysql=/usr/local/mysql checking for specified location of the MySQL UNIX socket... 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 error cannot find 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+
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 Us Learn more about Stack Overflow the company Business Learn more about hiring 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 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 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_config, best is to point the compiler flags to this so the build system uses the compiler/linker flags provided by the installation. --with-mysql=/path/to/bin/mysql_config When using PHP 5.3 you could also use "myslqnd" as a path which would enable the "MySQL native driver" which is a PHP-specific replacement for the MySQL Client library a