Linux Install PHP module--with-mysql--with-mysqli Do I have to install MySQL?

Source: Internet
Author: User
Tags soap mysql client
Install php.5.3 in the Linux CentOS environment
./configure--prefix=/usr/local/php/--with-config-file-path=/usr/local/php/etc/--enable-soap--enable-fpm-- enable-mbstring \
--with-curl--with-mysql-with-mysqli--WITH-GD--with-jpeg-dir

Error:
Configure:error:Cannot Find Libmysqlclient under/usr.
Note that the MySQL client library isn't bundled anymore!

A little confused, With-mysql module is supported MySQL bar? Do I have to install MySQL on the machine? Because the machine is connected to the MSYQL on other machines, I just need to install the support MySQL connection. Is there any other way?

These are required to find additional information: Mysql-server mysql-client Libmysqlclient-dev

Reply content:

Install php.5.3 in the Linux CentOS environment
./configure--prefix=/usr/local/php/--with-config-file-path=/usr/local/php/etc/--enable-soap--enable-fpm-- enable-mbstring \
--with-curl--with-mysql-with-mysqli--WITH-GD--with-jpeg-dir

Error:
Configure:error:Cannot Find Libmysqlclient under/usr.
Note that the MySQL client library isn't bundled anymore!

A little confused, With-mysql module is supported MySQL bar? Do I have to install MySQL on the machine? Because the machine is connected to the MSYQL on other machines, I just need to install the support MySQL connection. Is there any other way?

These are required to find additional information: Mysql-server mysql-client Libmysqlclient-dev

You need to install Libmysqlclient-dev. This is the development file for the MySQL client library (header file, pkg-config configuration, etc.). It will depend on Libmysqlclient, which is the MySQL client library that is used to connect to the MySQL server.

To connect a MySQL server (even on a remote system) from a system, you still need to have the MySQL client library so your program knows how to speak the language (MySQL network protocol) used by MySQL. Of course, some libraries do not use the official MySQL client library, but do it themselves, so that there is no need for the official MySQL client library (such as Pymysql).

If you are prompted, install libmysqlclient.

It should be as long as there is mysql-libs. But there's a lot of names for this bag, like mysql-community-libs.

  • 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.