In PHP dynamic compilation, cannot find Autoconf appears.
After installing PHP, you want to dynamically compile the memcache extension library of PHP.
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 occurs when/usr/local/webserver/PHP/bin/phpize is executed:
Processing ing: Php api version: 20041225 Zend module api no: 20060613 Zend extension api no: 220060519 Cannot findAutoconf. Please check your Autoconf installation and $ Php_autoconfEnvironment variable is set correctly and then rerun this script. |
I searched the internet and found that there were a lot of people asking this question. I picked it up for a while:
# 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 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 install