简体   繁体   English

在High Sierra上使用PECL安装xDebug

[英]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

Output 输出量

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”失败

Question

I feel I might did something wrong during the installation of PECL ... What should I do ? 我感觉在安装PECL的过程中可能做错了什么...我该怎么办?

FIY Y

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.

相关问题 在MacOS High Sierra上安装xdebug - Install xdebug on MacOS High Sierra pecl install xdebug 中的错误版本 - Wrong version in pecl install xdebug 如何在安装在 osx high sierra 上的 PHP 7.1.14 中安装 xdebug PHP 扩展? - How can I install xdebug PHP extension in PHP 7.1.14, which is installed on osx high sierra? 在 OS X 10.11 El Capitan、macOS 10.12 Sierra、macOS 10.13 High Sierra (&lt; 10.13.3) 上安装 pecl 和 pear - Installing pecl and pear on OS X 10.11 El Capitan, macOS 10.12 Sierra, macOS 10.13 High Sierra (< 10.13.3) 尽管已正确安装,但Xdebug不会在MacOS High Sierra的断点处停止 - Xdebug not stopping on breakpoint on MacOS High Sierra although is correctly installed 如何在macOS High Sierra上安装PHP GMP? - How to install PHP GMP on macOS High Sierra? 安装国际 PHP 扩展 OSX High Sierra - Install intl PHP extension OSX High Sierra 如何在MacOS High Sierra上安装PHP Opcache? - How to install PHP Opcache on MacOS High Sierra? PECL安装xdebug失败,因为它找到了内置的旧PHP而不是自制的最新版本 - PECL install xdebug fails because it finds built-in older PHP instead of homebrew's latest version 当使用相同的Dockerfile时,为什么pecl在另一台主机上为xdebug安装了不同版本? - Why does pecl install a different version for xdebug on another host when using same Dockerfile?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM