Compile Php Configure Error Cannot Find Libmysqlclient Under /usr
Contents |
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 libmysqlclient_r more about Stack Overflow the company Business Learn more about hiring developers or posting configure: error: cannot find mysql header files under /usr/bin/ ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack
Note That The Mysql Client Library Is Not Bundled Anymore!
Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Setting up a server and can't find libmysqlclient under /usr up
Configure Error Cannot Find Libmysqlclient Under /usr Centos
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 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 mysqlnd 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 not work unfortunately. –inimrepus Sep 9 '14 at 15:43 What OS are you using Ubuntu? Did you compile libmysql or install from repo? –beiller Sep 9 '14 at 15:44 Using Ubuntu, I installed libmysql from repo. –inimrepus Sep 9 '14 at 15:45 1 --with-mysql --with-libdir=/lib/x86_64-linux-gn
HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Server php configure: cannot find libmysqlclient User Name Remember Me? Password Linux - Server This
Configure: Error: Cannot Find Openssl's Libraries
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 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 http://stackoverflow.com/questions/25748740/setting-up-a-server-and-cant-find-libmysqlclient-under-usr 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: 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 http://www.linuxquestions.org/questions/linux-server-73/php-configure-cannot-find-libmysqlclient-582944/ 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. Click Here to receive this Complete Guide absolutely free. Search this Thread 09-07-2007, 10:18 AM #1 neocontrol Member Registered: Jul 2005 Posts: 273 Rep: php configure: cannot find libmysqlclient Never mind this. I just removed the --with-lib-dir option. This is really an annoying issue, as I run into this every time, and I continue to have to come up with different solutions. This time, I'm stuck. I'm trying to get apache / php / mysql working. I installed apache with no issues. I downloa
Forums Hosting Security and Technology Compiling PHP error If this is your first visit, be http://www.webhostingtalk.com/showthread.php?t=680485 sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to https://www.question-defense.com/2009/03/10/configure-error-cannot-find-libmysqlclient-under-usr proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 7 of 7 Thread: Compiling PHP cannot find error Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-21-2008,05:55 PM #1 Tristan Perry View Profile View Forum Posts View Forum Threads Visit Homepage Web Hosting Master Join Date Sep 2006 Location Cardiff - United configure error cannot Kingdom Posts 1,568 Compiling PHP error Hey all, I recently tried upgrading my test VPS to run PHP 6.0, and it worked. However I wasn't able to get MySQL to compile with PHP. Hence I just reinstalled MySQL and tried recompiling PHP (from source) again. However I still get errors when compiling PHP: checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/tmp/mysql.sock configure: error: Cannot find libmysqlclient under /usr/local. Note that the MySQL client library is not bundled anymore! No matter what ./configure command I run, I can't seem to get this working. For example, the PHP INSTALL documentation (comes with the source files) actually says running: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql Will work fine. However it doesn't. I've also tried specifying the MySQL directory, to no success. Just as some extra information, libmysqlclient is at: -bash-3.00# find /usr -name libmysqlclient\* /usr/lib/libmysqlclient.so.6 /usr/lib64/libmysqlclient.so /usr/lib64/libmysqlclient.so.14 /usr/lib64/libmysqlclient_r.so /usr/lib64/mysql/libmysqlclient
Cannot find libmysqlclient under /usr alex March 10, 2009 Errors 6 Comments Tweet I received the below error when compiling PHP to work as an external application with the Litespeed API. When you do compile this it's called the PHP LSAPI module which is then used by Litespeed to process PHP. PHP Build Error: bash configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! The issue was that I the MySQL server version was 64-bit and the php compile script was looking for 32-bit libraries. To see if your MySQL server is 64-bit or 32-bit check the version by issuing the below command and looking for a response also shown below. MySQL Version: bash [root@server php-5.2.8]# mysql --version mysql Ver 14.12 Distrib 5.0.45, for redhat-linux-gnu (x86_64) using readline 5.0 To resolve the issue add the below configuration options to your PHP configure script. Options to Add: bash --with-mysql=/usr/bin/ --with-libdir=lib64 So my PHP configure script after adding these options now looked like the below which resolve the compile error. PHP Configure Script: bash ./configure --prefix=/var/lsws/lsphp5 --with-litespeed --with-mysqli --with-mcrypt --with-mysql=/usr/bin/ --with-libdir=lib64 --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv See larger image SQL Pocket Guide (Paperback) List Price: $14.99 USD New From: $6.98 USD In Stock Used from: $3.69 USD In Stock
See larger image MySQL High Availability: Tools for Building Robust Data Centers (Paperback) List Price: $49.99 New From: $4.07 USD In Stock Used from: $1.49 USD In Stock TOPICS --with-litespeed32-Bit64-Bitcompileconfigurelib64libdirlibmysqlclientlibraryLitespeedlsapilswsmysqlPHPversion Share Previous How to Print Files, Emails, Images, Contacts, and Web Pages From Your iPhone or Touch Nextchecking for mysql_close in -lmysqlcli