Skip to main content

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

Comments

Some other options is also

Some other options is also that there is nothing set for variabels $PHP_AUTOCONF & $PHP_AUTOHEADER;

Try:

# echo $PHP_AUTOCONF
and
# echo $PHP_AUTOHEADER

if any of them are blank you need to use

# export PHP_AUTOCONF=/usr/bin/autoconf
or
# export PHP_AUTOHEADER=/usr/bin/autoheader

Remember to change the values to point to your executables.

Thanks! A few hairs from my

Thanks! A few hairs from my head have been saved from being ripped out due to frustration.

Thanks!!

Post new comment

The content of this field is kept private and will not be shown publicly.