升级Xdebug错误找不到Autom4te / C4che.pm

时间:2017-09-04 14:46:46

标签: php phpstorm xdebug

设置PhpStorm并配置Xdebug时出现以下错误:

Xdebug requires Zend Engine API version 220121212. The Zend Engine API 
version 320151012 which is installed, is newer. Contact Derick Rethans 
at http://xdebug.org/docs/faq#api for a later version of Xdebug.

我正在运行Mac OS X El Capitan 10.11.6。

更新:

关注@ alix-blex建议编译新版本,我使用以下内容确定要采取的步骤:

https://xdebug.org/wizard.php

因此,在编译新版本的Xdebug并运行以下命令时,我收到错误:

wget http://xdebug.org/files/xdebug-2.5.4.tgz
tar -xvzf xdebug-2.5.4.tgz
cd xdebug-2.5.4
phpize

然后我收到此错误

Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
Can't locate Autom4te/C4che.pm in @INC (you may need to install the Autom4te::C4che module) (@INC contains:
/usr/local/share/autoconf
/Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18
/Library/Perl/Updates/5.18.2
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18 .) at /usr/local/bin/autom4te line 37.
BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 37.

最后(继续工作)

brew tap homebrew/homebrew-php
brew install php70-xdebug
sudo vi /usr/local/php7/lib/php.ini

(insert into php.ini)
[Xdebug]
zend_extension="/usr/local/Cellar/php70-xdebug/2.5.5/xdebug.so"
xdebug.remote_enable=1

sudo apachectl restart

感谢您的帮助@ alex-blex

0 个答案:

没有答案