2011-12-08 29 views
21

xdebugをインストールしようとしましたが、「phpize」に関する次のエラーメッセージが表示されます。 どうすればこの問題を修正できますか?Mac OS X Lionでphpizeは動作しません

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

また、私はこの問題に遭遇してきました。私はautoconfをインストールし、私のbashプロファイルのパスに追加しましたが、まだこのメッセージが表示されます。 autoconfをインストールすることには関係がないことは確かです。 – jenlampton

答えて

26

"autoconfが見つかりません" - autoconfをインストールして再試行してください。

sudo port install autoconf私が知る限り、XcodeとMacPortsが必要です。

+0

ありがとうございました。私はこの分野の正午ですが、どうすればautoconfをインストールできますか?ありがとうございました! – directory

+0

私はちょうど私の答えを更新しました –

+0

はい、私はちょうどXcodeで終わった!ありがとうございます=) – directory

72

autoconfをhomebrewでインストールすることもできます。ただ、

brew install autoconf 

を実行し、すべてが私にとって

+1

許可エラーが発生しました。 * sudo chown -R yourusername/usr/local *次に:* sudo chmod -R u +/usr/local *そして最後に:* brew link autoconf * – mpemburn

+0

これは私を大いに助けました。ありがとう! – Rick

+0

ありがとう!!!!!!!!!! –

1

に動作します、私は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: 
関連する問題