Add a dynamic module instead of re-compiling php (taking the mbstring module as an example)

Source: Internet
Author: User
Add dynamic modules without re-compiling php (taking the mbstring module as an example) 1 enter the MB string directory in the php source code directory cd/usr/local/src/php-5.2.4/ext/mbstring/2 execute the bin/phpize file/usr/local directory after php installation does not re-compile php, add a dynamic module (taking the mbstring module as an example)

1. enter the MB string directory in the php source code directory.
Cd/usr/local/src/php-5.2.4/ext/mbstring/

2. execute the bin/phpize file in the directory after php installation.
/Usr/local/php/bin/phpize (this requires aotuconf? Unbutnu: sudo apt-get install aotuconf)

?

3 ?. /Configure -- with-php-config =/var/lib/php5/bin/php-config # write your own config file here.

?

4. make & make install (if an error is reported in the previous step, find the corresponding solution based on the error cause). after installation, the generated so file location will be prompted and copied to the php extension directory. for example, under $ HOME/usr/local/php5/ext. ini. if the so file cannot be loaded, it can be written as an absolute path.

?

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.