[英]Install xDebug with PECL on High Sierra
I just updated my mac from Sierra to High Sierra. 我刚刚将Mac从Sierra更新为High Sierra。 I installed PECL following those instructions and I'd like to install xdebug
running pecl install xdebug
. 我安装PECL以下的说明 ,我想安装xdebug
运行pecl install xdebug
。
79 source files, building running: phpize grep: 79个源文件,正在运行: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: building in /private/tmp/pear/install/pear-build-rootPkeU2l/xdebug-2.6.0 running: /private/tmp/pear/install/xdebug/configure --with-php-config=/usr/bin/php-config /private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found /usr/include/php/main/php.h:没有这样的文件或目录grep /usr/include/php/Zend/zend_modules.h:没有这样的文件或目录grep:/ usr / include / php / Zend / zend_extensions。 h:无此类文件或目录配置:PHP Api版本:Zend Module Api否:Zend Extension Api否:在/private/tmp/pear/install/pear-build-rootPkeU2l/xdebug-2.6.0中运行:/ private / tmp / pear / install / xdebug / configure --with-php-config = / usr / bin / php-config /private/tmp/pear/install/xdebug/xdebug.c:25:10:致命错误:'php .h'档案未找到
include "php.h" 包括“ php.h”
1 error generated. 产生1个错误。 make: *** [xdebug.lo] Error 1 ERROR: `make' failed make:*** [xdebug.lo]错误1错误:“ make”失败
I feel I might did something wrong during the installation of PECL ... What should I do ? 我感觉在安装PECL的过程中可能做错了什么...我该怎么办?
php -v
PHP 7.1.16 (cli) (built: Mar 31 2018 02:59:59) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies PHP 7.1.16(cli)(内置:Mar 31 2018 02:59:59)(NTS)版权所有(c)1997-2018 The PHP Group Zend Engine v3.1.0,版权所有(c)1998-2018 Zend Technologies
需要运行这个
xcode-select --install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.