Mac Mojave PHP 7.19使用xdebug进行配置

时间:2018-12-07 11:37:49

标签: php xdebug macos-mojave

我最近将Macbook Pro更新为mojave,从而将PHP更新为7.19。问题是xdebug已停止工作。我尝试编辑/etc/php.ini,在xdebug的先前条目中添加,但是现在当我启动apache时,我得到以下信息:

Failed loading /usr/local/opt/php71-xdebug/xdebug.so: dlopen(/usr/local/opt/php71-xdebug/xdebug.so, 0x0009): code signature in (/usr/local/opt/php71-xdebug/xdebug.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

所以我想我会尝试重新安装xdebug-sudo pecl install xdebug-失败,并出现以下错误:

/bin/sh /private/tmp/pear/temp/pear-build-rootFbhymt/xdebug-2.6.1/libtool --mode=compile cc -I. -I/private/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootFbhymt/xdebug-2.6.1/include -I/private/tmp/pear/temp/pear-build-rootFbhymt/xdebug-2.6.1/main -I/private/tmp/pear/temp/xdebug -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/xdebug/xdebug.c -o xdebug.lo mkdir .libs

cc -I. -I/private/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-rootFbhymt/xdebug-2.6.1/include -I/private/tmp/pear/temp/pear-build-rootFbhymt/xdebug-2.6.1/main -I/private/tmp/pear/temp/xdebug -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/xdebug/xdebug.c -fno-common -DPIC -o .libs/xdebug.o /private/tmp/pear/temp/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found

#include "php.h"

^~~~~~~

1 error generated.

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

ERROR: make'失败`

这比我的薪水等级略高一点,我认为...似乎出于某种原因找不到php.h,但现在我被卡住了!

我该如何解决?

编辑

作为对此的更新,我还可以看到运行命令时phpize失败:

`

downloading xdebug-2.6.1.tgz ...
Starting to download xdebug-2.6.1.tgz (283,961 bytes)
..........................................................done: 283,961 bytes
79 source files, building
running: 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:

`

我确实发现了这篇帖子Unable to use PHPIZE after update to MacOS Mojave,其中有人遇到了同样的问题,但是我并没有真正理解到它...我必须更改phpize文件的内容吗?

0 个答案:

没有答案