PHP Errores de PHP AUTOCONF en mac os x 10.7.3 al intentar instalar extensiones pecl


Estoy intentando configurar mi máquina con pecl_http y memcache y en ambos casos, obtengo errores similares. Esto es en MAC OS X 10.7.3 (lion) y también tengo XCODE instalado en él. También instalé Zend Server community edition antes de ejecutar estos comandos y he configurado las variables de entorno CFLAGS='-arch i386-arch x86_64'. Así que por favor ayuda con lo que necesito hacer

bash-3.2# **sudo pecl install pecl_http-1.7.1**
downloading pecl_http-1.7.1.tgz ...
Starting to download pecl_http-1.7.1.tgz (174,098 bytes)
.....................................done: 174,098 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed
Author: Ares, 2012-02-17

6 answers

brew install autoconf

Solución mucho más fácil

 291
Author: Bob Spryn,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-02 02:29:53

Necesita instalar autoconfig. Normalmente me gusta instalar bibliotecas desde el código fuente. Así que puedes hacer lo siguiente:

curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
tar xzf autoconf-latest.tar.gz
cd autoconf-*
./configure --prefix=/usr/local
make
sudo make install

Acabo de pasar por esto con Mountain Lion.

 87
Author: Ares,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-12-28 20:28:09

En Mac OS X 10.8 la situación es ligeramente diferente. La solución altamente votada de Bob Spryn no funciona, porque no crea enlaces simbólicos, por lo que después de instalar autoconf debe hacerlos:

sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoconf /usr/bin/autoconf
sudo ln -s /usr/local/Cellar/autoconf/2.69/bin/autoheader /usr/bin/autoheader

Sé que esta pregunta era para 10.7, pero espero que mi respuesta sea útil para alguien en 10.8. :)

Actualizado: También funciona en Yosemite 10.10.

 53
Author: Anton Babenko,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-19 16:11:07

O

sudo port install autoconf

Si utiliza macports

 14
Author: stoefln,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-05-10 13:39:09

XCODE 4.3 no pone todo el autoconf, etc. herramientas en la carpeta Desarrollador. Ni siquiera crea esa carpeta en MACINTOSH HD. Tuve que bajar a XCODE 4.2.1 que instala todo lo que necesita en la carpeta de desarrolladores y ahora no veo errores.

También aquí hay una referencia útil.

 3
Author: krishna,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-03-12 07:56:46

Tal vez necesite vincular autoconf con brew link autoconf.

 0
Author: Jichao,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-08-15 08:14:23