Error Cannot Find Libmysqlclient 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 under /usr centos and policies of this site About Us Learn more about Stack
Configure Error Cannot Find Mysql Header Files Under Usr Local Mysql
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Note That The Mysql Client Library Is Not Bundled Anymore!
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. Join them;
Libmysqlclient_r
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 find libmysqlclient under cannot find mysql header files 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/libmysqlclient_r.so.18 ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18.0.0 ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.so ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.a ./usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0 ./usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 .
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 mysqlnd the company Business Learn more about hiring developers or posting ads with us Server Fault configure: error: cannot find openssl's libraries 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 http://stackoverflow.com/questions/11134220/cannot-find-libmysqlclient-under-usr-while-build-php-5-2-from-source-on-ubuntu 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 http://serverfault.com/questions/68657/cannot-find-libmysqlclient-when-compiling-php5-on-dreamhost 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 en
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://wiki.iphoster.ru/wiki/CentOS_php_-_configure:_error:_Cannot_find_libmysqlclient_under_/usr. 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+
Почта Скрипты Домены VDS/VPS/Dedicated server Начало работы php 5 и расширения Веб-сервера ISPManager Оплата Тарифы и обработка заказов Статья Обсуждение Просмотр История CentOS php - configure: error: Cannot find libmysqlclient under /usr. Материал из Wiki - Iphoster - 'the best ever support' Перейти к: навигация, поиск CentOS php - 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 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-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql --with-libdir=lib64 --with-pdo-mysql --with-mysqli --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl --enable-ftp --with-imap-ssl --with-kerberos --with-gettext --enable-cgi Источник — «http://wiki.iphoster.ru/index.php?title=CentOS_php_-_configure: