繁体   English   中英

在OS X Lion 10.7.6上安装xdebug

[英]Installing xdebug on OS X Lion 10.7.6

因此,我安装了xdebug,但是在下载预编译版本时,我猜测它的版本错误,因此无法正常工作,因此我决定自己制作一个。 我按照xdebug网站上的说明进行操作,当涉及到运行phpize时,出现以下错误:

Cannot find config.m4. 
Make sure that you run './phpize' in the top level source directory of the module

当我在目录/ usr / bin中运行phpize时,出现相同的错误。

当我尝试查看正在运行的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: 

还有另一件事使我停滞不前是我没有gcc编译器,我没有安装并重新安装过xcode,现在两次都没有成功...

您应该使用xdebug源代码在目录内运行phpize。 它与xcode不相关。 然后,使用make脚本对其进行编译,然后将结果模块复制到php extensions文件夹中。 您确定您从git获得了正确的来源吗?

XDebug一直都在工作,我没有在php.ini文件中打开html_errors,并且在使用zend Framework时,也没有在index.php文件中将application_env更改为development! 对困惑感到抱歉。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM