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.