Compile php./configure command What's the difference between enable and with

Source: Internet
Author: User

Original: https://segmentfault.com/q/1010000009174725

--------------------------------------------------------------------------------------------------------------- -----------------------

  1. Enable is an extension that enables PHP source packages, but is not enabled by default, such as FTP and EXIF extensions. With is the location of the repository where the extension depends, and if it is the default location, you can leave it blank.

  2. PHP extension is divided into static compilation and dynamic compilation of two kinds, static compilation is the PHP source with the compilation of the installation, that is,--enable and--with enabled extensions. Dynamic compilation is the way to add extensions to PHP using the Phpize command in an already available PHP environment, which is the resulting so file. So if you want to compile the extension into the PHP kernel, you need to compile the installation with PHP.

  3. Yes, the PHP source package ext Directory is the official default supported extensions, and part of the PECL Library extension, part of the PECL extension is officially supported, the other part is supported by third-party developers.

  4. Compile and install the extension with PHP, which is the Configure command

Compile php./configure command What's the difference between enable and with

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.