今天看了首页的综合资讯排名前十的 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