mysql-Extension library configuration issues when compiling PHP

Source: Internet
Author: User
When compiling PHP, there are a number of configuration options, as follows:

--with-curl=dir

--with-mysql=dir

--with-gd=dir

--enable-fpm

1: The above is not all PHP extension library, compile PHP together to compile, why some use--with, and some with--enable?

Issue 2: The above extension library in the PHP source file in the Ext directory, the dir stands for what meaning, the official explanation is not understand.

Reply content:

When compiling PHP, there are a number of configuration options, as follows:

--with-curl=dir

--with-mysql=dir

--with-gd=dir

--enable-fpm

1: The above is not all PHP extension library, compile PHP together to compile, why some use--with, and some with--enable?

Issue 2: The above extension library in the PHP source file in the Ext directory, the dir stands for what meaning, the official explanation is not understand.

1.--with is to compile it directly into the PHP executable file,--enable is compiled into. So or. dll and then load in php.ini.

  1. --with are dependent on third-party libraries, but if a third-party library is in the default location, it can be ignored [=dir];--enable does not need to rely on third-party libraries.
  2. Many of these extensions are just encapsulation of third-party libraries (providing binding), which is where the third-party library files need to be specified.
  • Related Article

    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.