2011-12-08 28 views
21

Cerco di installare xdebug ma ottengo il seguente messaggio di errore su 'phpize'. Come posso risolvere questo problema?phpize non funziona su Mac OS X Lion

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 
+0

Ho anche eseguito in questo problema. Ho installato autoconf e l'ho aggiunto al percorso nel mio profilo bash, ma ho ancora ricevuto questo messaggio. Non è sicuro che l'installazione di autoconf abbia a che fare con esso. – jenlampton

risposta

26

"Impossibile trovare autoconf" - Installa autoconf e riprova.

sudo port install autoconf ma è necessario Xcode e MacPorts per quanto ne so.

+0

Grazie per la rapida risposta. Sono mezzogiorno in quest'area, ma come posso installare autoconf? Grazie! – directory

+0

Ho appena aggiornato la mia risposta –

+0

Sì, l'ho fatto con solo Xcode! Grazie mille =) – directory

72

È inoltre possibile installare autoconf tramite homebrew. Basta eseguire

brew install autoconf 

E tutto funzionerà

+1

Ottenuto errori di autorizzazione da questo. Dovete prima fare: * sudo chown -R yourusername/usr/local * poi: * sudo chmod -R u + w/usr/local * e infine: * brew link autoconf * – mpemburn

+0

Questo mi ha aiutato molto. Grazie! – Rick

+0

Grazie !!!!!!!!!! –

1

Per me, non avevo accettato di licenza 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: