05.13.09

phpize complains about $PHP_AUTOCONF

Posted in rants, bugs/fixes at 5:44 pm by tal

You’re trying to phpize some package, but no matter what you do it complains that it cannot find autoconf? whatever you do it throws at you:

Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script

I’ve been stuck with this for 5 hours till I found the solution at: http://georgedonnelly.com/unix/the-fix-for-those-silly-freebsd-php-ports-php_autoconf-errors

Basically, if you’re like me - you’ve been trying to point $PHP_AUTOCONF at the executable, right? What you should do instead is:

1) make sure the autoconf binary is in the path
2) set $PHP_AUTOCONF to whatever the name of your autoconf binary is

I hope it took you less than 5 hours to get here. (go google!)

P.S.

If you need autoconf you can follow the uzair’s instructions which are:

You can download it from http://ftp.gnu.org/gnu/autoconf/ and then do
1. ./configure –prefix=/path/to/your/home/directory
2. make
3. make install