首页 > Web开发 > 详细

mac+php+xdebug

时间:2016-05-28 17:43:47      阅读:285      评论:0      收藏:0      [点我收藏+]

1,下载xdebug

2,进入xdebug-2.4.0RC4目录,运行phpize命令,

技术分享

2,google之后说要安装autoconf 

  brew install autoconf

3,但是使用brew无法找到些命令,于是安装brew

  ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

 

   安装完brew之后,执行brew install autoconf

4,安装完之后在xdebug-2.4.0RC4目录下:

  ./configure

  make

5,这里会报以下错误

  /Users/slin/tools/xdebug-2.4.0RC4/xdebug.c:25:10: fatal error: ‘php.h‘ file not

        found

  #include "php.h"

           ^

  1 error generated.

  make: *** [xdebug.lo] Error 1

6,找了半天原因,是/usr下没有include 目录,这个目录就是sudo 也无法创建,会报权限不够,由于这个目录的不存在,所以phpize命令也是无法正常执行,一通搜索过后,终于有人说安装command lines tools(这里在控制台使用xcode-select --install命令就可以安装了)之后就可以解决,当我安装了之后发现/user下出现了include目录,执行make 正常,执行phpize正常,安装成功

 

mac+php+xdebug

原文:http://www.cnblogs.com/dasenglin/p/5537762.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!