Configure Error Cannot Find Libmysqlclient Library 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 cannot find libmysqlclient under usr local mysql site About Us Learn more about Stack Overflow the company Business Learn more configure error cannot find ldap libraries in usr lib about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss configure error cannot find libmysqlclient_r under usr local mysql Join the Stack Overflow Community Stack 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 note that the mysql client library is not bundled anymore! 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 is: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-libdir I have installed libmysqlclient and when I
Libmysqlclient_r
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 not work unfortunately. –inimrepus Sep 9 '14 at 15:43 What OS are you using Ubuntu? Did you compile libmysql or install from repo? &ndas
Multiple PHP Versions (PHP-FPM & FastCGI) With ISPConfig 3 (Debian Wheezy) -
Cannot Find Mysql Header Files Under
Page 2 Land your dream job and get $5k from configure error cannot find libmysqlclient under /usr centos Indeed Prime. 100% free. On this page 3 Building PHP 5.3.22 (FastCGI) 3 Building PHP 5.3.22 mysqlnd (FastCGI) Download and extract PHP 5.3.22: mkdir /opt/phpfcgi-5.3.22 mkdir /usr/local/src/php5-build cd /usr/local/src/php5-build wget http://de.php.net/get/php-5.3.22.tar.bz2/from/this/mirror -O php-5.3.22.tar.bz2 tar jxf php-5.3.22.tar.bz2 cd php-5.3.22/ Install the prerequisites for http://stackoverflow.com/questions/25748740/setting-up-a-server-and-cant-find-libmysqlclient-under-usr building PHP5: apt-get install build-essential apt-get build-dep php5 apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a (The last command is needed if you build PHP with --with-imap, because otherwise ./configure will stop with the following error: checking for crypt in -lcrypt... yes configure: error: Cannot find imap https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-debian-wheezy-p2 library (libc-client.a). Please check your c-client installation. [emailprotected]:/usr/local/src/php5-build/php-5.3.22# ) Configure and build PHP 5.3.22 as follows (you can adjust the ./configure command to your needs, take a look at ./configure --help to see all available options; if you use a different ./configure command, it is possible that additional libraries are required, or the build process will fail): ./configure \ --prefix=/opt/phpfcgi-5.3.22 \ --with-pdo-pgsql \ --with-zlib-dir \ --with-freetype-dir \ --enable-mbstring \ --with-libxml-dir=/usr \ --enable-soap \ --enable-calendar \ --with-curl \ --with-mcrypt \ --with-zlib \ --with-gd \ --with-pgsql \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-zlib \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-pcntl \ --enable-mbregex \ --enable-exif \ --enable-bcmath \ --with-mhash \ --enable-zip \ --with-pcre-regex \ --with-mysql \ --with-pdo-mysql \ --with-mysqli \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-openssl \ --with-fpm-user=www-data \ --with-fpm-group=www-data \ --with-libdir=/lib/x86_64-linux-gnu \ --enable-ftp \ --with-imap \ --with-imap-ssl \ --with-kerberos \ --with-gettext \ --with-xmlrpc \ --with-xsl \ --enable-cgi The last switch (--enable-
Почта Скрипты Домены VDS/VPS/Dedicated server Начало работы php 5 и расширения Веб-сервера ISPManager Оплата Тарифы и http://wiki.iphoster.ru/wiki/CentOS_php_-_configure:_error:_Cannot_find_libmysqlclient_under_/usr. обработка заказов Статья Обсуждение Просмотр История CentOS php - configure: error: Cannot find libmysqlclient under /usr. http://www.webhostingtalk.com/showthread.php?t=680485 Материал из Wiki - Iphoster - 'the best ever support' Перейти к: навигация, поиск CentOS php cannot find - configure: error: Cannot find libmysqlclient under /usr. Ошибка при компиляции php: checking for mcrypt support... yes checking for libmcrypt version... >= 2.5.6 checking for mcrypt_module_open in -lmcrypt... yes checking for MSSQL configure error cannot support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! Проверяем где находятся библиотеки mysql: # ldconfig -v |grep mysql libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0 libmysqlclient.so.18 -> libmysqlclient_r.so.18.0.0 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0 # locate libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.16.0.0 /usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient.so.16 /usr/local/cpanel/3rdparty/lib64/mysql/libmysqlclient.so.16.0.0 Решение - добавляем опцию --with-libdir=lib64: # ./configure --prefix=/opt/php53 --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-curl --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-bz2 --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbreg
Forums Hosting Security and Technology Compiling PHP error If this is your first visit, be 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 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 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 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.a /usr/lib64/mysql/libmysqlclient.la /usr/lib64/mysql/libmysqlclient_r.a /usr/lib64/mysql/libmysqlclient_r.la /usr/lib64/mysql/libmysqlclient.so /usr/lib64/mysql/libmysqlclient_r.so /usr/lib64/libmysqlclient.so.15 /usr/lib64/libmysqlclient.so.15.0.0 /usr/lib64/libmysqlclient_r.so.15 /usr/lib64/libmysqlclient_r.so.15.0.0 /usr/local/lib