Compiling a shared PECL extension library with Phpize

Source: Internet
Author: User

Sometimes it doesn't work . peclInstall the command. This could be because behind the firewall, or because the extension library you want to install does not have a PECL compatible package, such as an extension library that has not yet been published in SVN. If you want to compile this extension library, you can compile it manually using the lower-level compilation tool.

The phpize command is used to prepare the compilation environment for the PHP Extension library. In the following example, the source program for the extension library is in the extname directory:

$ cd extname$ phpize$./configure$ make# Make Install

A successful installation will be created extname.so and placed in the PHP extension Library directory. You need to adjust php.ini it before you can use this extension until you join the extension=extname.so line.

If the system does not have a phpize command and uses a precompiled package (for example, RPM), install the appropriate development version of the PHP package, which typically contains the phpize command and the corresponding header file for compiling PHP and its extension library.

Use the phpize--help command to display this command usage.

Compiling a shared PECL extension library with Phpize

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.