Compilation PHP5.3.24 encountered: Checking for mysql_close in-lmysqlclient_r ... no

Source: Internet
Author: User

and toss the server to record their own compilation of php5.3.24 process. The following configure configuration commands are performed:

The code is as follows Copy Code

./configure
--prefix=/usr/local/php
--with-config-file-path=/usr/local/php/etc
--with-config-file-scan-dir=/usr/local/php/etc/conf.d
--enable-fpm
--with-fpm-user=webserver
--with-fpm-group=webserver
--with-curl
--with-pear
--with-gd
--with-jpeg-dir
--with-png-dir
--with-zlib
--with-xpm-dir
--with-freetype-dir
--with-mcrypt
--with-mhash
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql
--with-pdo-mysql=/usr/local/mysql
--with-openssl
--with-xmlrpc
--with-xsl
--with-bz2
--with-gettext
--disable-debug
--enable-fpm
--enable-exif
--enable-wddx
--enable-zip
--enable-bcmath
--enable-calendar
--enable-ftp
--enable-mbstring
--enable-soap
--enable-sockets
--enable-sqlite-utf8
--enable-shmop
--enable-dba
--enable-sysvsem
--enable-sysvshm
--enable-sysvmsg

The following error was encountered:

Checking for Mysql_close in-lmysqlclient_r ... no
Checking for Mysql_error in-lmysqlclient_r ... no
Configure:error:mysql Configure failed. Please check the Config.log for the more information.

Check, search, find a blog, said is the reason for this:

This bug report:http://www.111cn.net
If you need libmysql, apply the patch or create the symlink.
Better:switch to Mysqlnd

I also changed the configuration options for MySQL, Mysqli, PDO to:

The code is as follows Copy Code

--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd

Compile through ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.