Centos Configure Error Cannot Find Libmysqlclient_r Under /usr
Contents |
Почта Скрипты Домены VDS/VPS/Dedicated server Начало работы php 5 и расширения Веб-сервера ISPManager Оплата Тарифы и обработка configure: error: cannot find libmysqlclient under /usr. заказов Статья Обсуждение Просмотр История CentOS php
Note That The Mysql Client Library Is Not Bundled Anymore!
- configure: error: Cannot find libmysqlclient under /usr. Материал из cannot find mysql header files under Wiki - Iphoster - 'the best ever support' Перейти к: навигация, поиск CentOS php - configure: error: configure: error: cannot find openssl's libraries 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 support via FreeTDS... no
Mysqlnd
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-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-libdir=lib64 --with-pdo-mysql --with-mysqli --with-jpeg-dir=
Multiple PHP Versions (PHP-FPM & FastCGI) With ISPConfig 3 (Debian Wheezy) - Page 2 On this page 3 Building PHP 5.3.22 (FastCGI) 3 Building PHP 5.3.22 (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 building PHP5: apt-get install http://wiki.iphoster.ru/wiki/CentOS_php_-_configure:_error:_Cannot_find_libmysqlclient_under_/usr. 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 https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-debian-wheezy-p2 imap 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 \ --w
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://www.ecommy.com/linux/configure-error-cannot-find-libmysqlclient-under-usrlocal 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+
Cannot find libmysqlclient under /usr/local Linux Comments Off on Configure: error: Cannot find libmysqlclient under /usr/local The fix is pretty simple, run the following commands and afterwards reenter your previous ./configure command ln -s /usr/lib64/libmysqlclient.so /usr/lib/libmysqlclient.so ln -s /usr/lib64/libmysqlclient.so /usr/local/libmysqlclient.so ← install percona in a whm cpanel environment debug sql inside cakephp model → Search this blog: Categories CakePHP Different Thoughts E-commerce E-commerce News Google Linux MySQL Prestashop Programming Project Management Seo Web development Web Security Yahoo Tagsamazon android argentina ATK bbc BladeCenter cackephp cakefest cardia custom font on website data quality DDOS DIBS dictionary direct linking E-commerce Embedded Open Type free shipping gaudi Google greek hack oscommerce IBM magentocommerce new DDOS tools online payments openId oracle oscommerce pagerank php PHP Framework php local date prestashop rentacoder Seo sql injection translate tool translation video tutorial windowshop yahoo invisible yahoo live youtube zencart Subscribe Recent Posts Apache reverse SSL proxy Avoid brute force for wordpress http/2 apache centos7 Linux - create a new partition command line Import public certificate and private key to Windows Recent ReviewsDate Picker for checkout (with hours) - Prestashop5 out of 5by carolinDate Picker for checkout (with hours) - Prestashop5 out of 5by info7Prestashop limited time slot based delivery date (pizza/food-delivery delivery)5 out of 5by Zen ecommy CTO Software Architect, Backend Developer, Internet Consultant forum moderator (prestashop) Email: radu[a]ecommy.com Ecommy © 2016. All Rights Reserved. web based application development