Error Cannot Find Libmysqlclient_r 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 workings
Configure Error Cannot Find Libmysqlclient_r Under Usr Local Mysql
and policies of this site About Us Learn more about Stack Overflow configure error cannot find mysql header files under usr local mysql the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation note that the mysql client library is not bundled anymore! 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. Join them; it
Cannot Find Mysql Header Files Under
only takes a minute: Sign up Setting up a server and can't find libmysqlclient under /usr up vote 1 down vote favorite I am currently setting up a PHP 5.2 server (yes I know, but it is actually needed in this case) but I keep getting an error: configure: error: Cannot find libmysqlclient under /usr. The command that I am running
Configure Error Cannot Find Libmysqlclient Under /usr Centos
is: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-libdir I have installed libmysqlclient and when I run locate libmysqlclient I get results returned, although none of them are the file libmysqlclient (the closest is libmysqlclient.a) I would greatly appreciate any help that can be provided. php mysql ubuntu libmysql share|improve this question asked Sep 9 '14 at 15:38 inimrepus 3427 as I recall, the mysql stuff is wonky, and you have to point configure at the parent directory. e.g. if the lib's in /foo/bar/baz/libmysql.so, you have to do --with-mysql=/foo/bar instead. –Marc B Sep 9 '14 at 15:44 I gave this a shot and no such luck. –inimrepus Sep 9 '14 at 15:47 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted Try using the DIR directive --with-mysql --with-libdir=/lib/i386-linux-gnu/ From Cannot find libmysqlclient under /usr. while build PHP 5.2 from source on Ubuntu 12.4 Updated from your comment! share|improve this answer edited Sep 9 '14 at 16:48 answered Sep 9 '14 at 15:41 beiller 2,6771415 I tried this but it did n
Post navigation ← Previous Next → error: Cannot find libmysqlclient_r under /usr/local/mysql - PHP Compile mysqlnd Error Posted on Sunday, April 28, 2013 Error: In a x86_64
Configure: Error: Cannot Find Openssl's Libraries
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: http://stackoverflow.com/questions/25748740/setting-up-a-server-and-cant-find-libmysqlclient-under-usr 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 http://www.sudosu.in/2013/04/error-cannot-find-libmysqlclientr-under.html 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 http://serverfault.com/questions/68657/cannot-find-libmysqlclient-when-compiling-php5-on-dreamhost 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 http://techblog.vindvejr.dk/?p=130 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 cannot find 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 error cannot find 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 tr
the following error when trying to build PHP 5.6.14/5.6.15 after upgrading to MySQL 5.7: configure: error: Cannot find libmysqlclient_r under /usr/local/mysql. Note that the MySQL client library is not bundled anymore! I added this to my build script in order to create the missing symbolic links: cd /usr/local/mysql/lib for f in libmysqlclient.so*; do ln -s $f $(echo $f | sed s/libmysqlclient/libmysqlclient_r/); done ln -s libmysqlclient.a libmysqlclient_r.a This entry was posted in Linux by Laursen. Bookmark the permalink. Leave a Reply Cancel replyYou must be logged in to post a comment. Proudly powered by WordPress