PHP Dynamic compiler appears cannot find autoconf solution _php Skills

Source: Internet
Author: User
Tags php programming zend

This article describes in detail the PHP dynamic compiler appears cannot find autoconf solution. Share to everyone for your reference. The specific methods are as follows:

After installing PHP, you want to dynamically compile PHP's memcache extension library

Copy Code code as follows:
CD memcache-2.2.5/
/usr/local/webserver/php/bin/phpize
./configure--with-php-config=/usr/local/webserver/php/bin/php-config

However, an error occurred while performing/usr/local/webserver/php/bin/phpize:

Copy Code code as follows:
Configuring for:
PHP Api version:20041225
Zend Module Api no:20060613
Zend Extension Api no:220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP _autoconf environment variable are set correctly and then rerun this Script.


On the Internet to search a pass, found that the problem mentioned a lot of people, picked a paragraph down:
Copy Code code as follows:
# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# TAR-ZVXF M4-1.4.9.tar.gz
# CD m4-1.4.9/
#./configure && make && make install
# CD ... /
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# TAR-ZVXF Autoconf-2.62.tar.gz
# CD autoconf-2.62/
#./configure && make && make install

If it is Ubuntu, it can be simpler:
Copy Code code as follows:
sudo apt-get install M4
sudo apt-get install autoconf

or directly:
Copy Code code as follows:
sudo apt-get install autoconf

Because Autoconf relies on M4, it automatically downloads to resolve this dependency.

I hope this article will help you with your PHP programming.

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.