IT技術に関する情報掲載サイト

プログラミングに関することを掲載します。

MacでXdebugをインストール方法は?

MacでM1を使っている際に、Xdebugをインストールする場合、以下のコマンドで実行するといいです。LAMP環境は、XAMMPをつかって構築しています。

 

arch -arm64 sudo pecl install xdebug   

 

phpizeする際に以下のエラーがでた。

Cannot find autoconf. Please check your autoconf installation and the

$PHP_AUTOCONF environment variable. Then, rerun this script.

brewをつかってautoconfをインストールしてみたら、エラーがでなくなりました。