今天看了首頁的綜合資訊排名前十的 PHP 調試工具,你承認嗎? ,就想裝個xdebugphp
phpize以後,以下
git
bogon:xdebug-2.2.3 zhoujianlong$ phpize grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script.
google之,stackoverflow上說用這個安裝antoconfgithub
brew install autoconf
-bash: brew: command not found
呵呵。。。安裝brewshell
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
==> Downloading and installing Homebrew... error: RPC failed; result=28, HTTP code = 0 fatal: The remote end hung up unexpectedly Failed during: git fetch origin master:refs/remotes/origin/master -n
用這個命令刪除後,從新安裝
bash
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
連續失敗兩次才安裝成功。curl
==> Downloading and installing Homebrew... remote: Counting objects: 152605, done. remote: Compressing objects: 100% (44292/44292), done. remote: Total 152605 (delta 107254), reused 152578 (delta 107232) Receiving objects: 100% (152605/152605), 28.91 MiB | 182.00 KiB/s, done. Resolving deltas: 100% (107254/107254), done. From https://github.com/Homebrew/homebrew * [new branch] master -> origin/master HEAD is now at 737d7dc ruby-build 20140225 ==> Installation successful! You should run `brew doctor' *before* you install anything. Now type: brew help
好了,繼續工具
brew install autoconf
裝上了,贊一個fetch
關於xdebug的安裝,官網上有文檔,這裏就不寫了ui