PHP Dynamic compilation appears cannot find autoconf
After installing PHP, you want to dynamically compile PHP's memcache extension library
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:
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 is 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:
# 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
This article links http://www.cxybl.com/html/wlbc/Php/20130608/38518.html