Compiling PHP extensions with the phpise command

Source: Internet
Author: User
Because my PHP environment is already installed. But my application needs a zlib extension. (Note that my PHP is compiled by make.) The following are the steps to proceed:


1. In the PHP compilation directory, $php _source/ext/zlib directory, you can find zlib resources.
2. Go to the Zlib directory and execute the $php_home/bin/phpise command
3. Configure the Zlib module,./configure–with-php-config= $php _home/bin/php-config
4. After configuration, execute make && make install command
5. Note the last log, providing a compiled zlib.so storage location.


Report:
1. When executing the phpise command, if you cannot find the Config.m4 file, you need to rename the Config0.m4 file to CONFIG.M4.


Resources:
1. http://www.cnblogs.com/huangzhen/archive/2012/09/12/2681861.html

Compiling PHP extensions with the phpise command

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.