Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable.

if you try running the following:

phpize

and get this error

$PHP_PREFIX/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. Then, rerun this script.

Then it's because you don't have autoconf installed.

To fix this error, do the following:

yum install autoconf

or you can install from source (if you want to use the latest version)

cd /usr/local/src/
/* find latest version of m4 here: http://ftp.gnu.org/gnu/m4/ */
wget http://ftp.gnu.org/gnu/m4/m4-latest.tar.gz
tar xvfz m4-latest.tar.gz
cd m4-latest
./configure
make
make install
/* find latest version of autoconf here: http://ftp.gnu.org/gnu/autoconf/ */
wget http://ftp.gnu.org/gnu/autoconf/autoconf-LATESTVERSION.tar.gz
tar xvfz autoconf-LATESTVERSION.tar.gz
cd autoconf-LATESTVERSION
./configure
make
make install

Tags: Server Linux