web-dev-qa-db-fra.com

phpize ne fonctionnera pas sous Mac OS X Lion

J'essaie d'installer xdebug mais je reçois le message d'erreur suivant sur 'phpize' . Comment puis-je résoudre ce problème?

leny:~ nick$ Sudo pecl install xdebug
Password:
downloading xdebug-2.1.2.tgz ...
Starting to download xdebug-2.1.2.tgz (304,229 bytes)
............done: 304,229 bytes
66 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
26
directory

"Impossible de trouver autoconf" - Installez autoconf et réessayez.

Sudo port install autoconf mais vous avez besoin de Xcode et MacPorts pour autant que je sache.

26
Narcis Radu

Vous pouvez également installer autoconf via homebrew. Juste courir

brew install autoconf

Et tout fonctionnera

79
jeroenbourgois

Pour moi, je n'avais pas accepté la licence Xcode: -

$ Sudo /usr/bin/m4 --version


You have not agreed to the Xcode license agreements. You must agree to both license agreements below in order to use Xcode.

Hit the Enter key to view the license agreements at '/Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf'

IMPORTANT: BY USING THIS SOFTWARE, YOU ARE AGREEING TO BE BOUND BY THE FOLLOWING Apple TERMS:
1
jormerod1981