我一直在抛出这个错误,但是我安装了7.1.2版本。为什么我不能./configure
在Ubuntu LAMP堆栈上安装xdebug
这是我的错误信息:
checking whether to enable Xdebug support... yes, shared
checking Check for supported PHP versions... configure: error: not supported.
Need a PHP version >= 7.0.0 and < 7.3.0 (found 5.3.10-1ubuntu3.26)
[email protected]:/var/www/xdebug# php -v
PHP 7.1.2-3+deb.sury.org~precise+1 (cli) (built: Feb 22 2017 10:29:40) (NTS)
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.2-3+deb.sury.org~precise+1, Copyright (c) 1999-2017, by Zend Technologies
[email protected]:/var/www/xdebug#
有其他人遇到这个问题。我试过重新安装PHP 7.0和其他一些策略。通读一堆类似的堆栈问题,但我无法弄清楚。
这意味着我不能移动到:make
make install
cp modules/xdebug.so /etc/php.d/xdebug.so
谢谢。它看起来像安装并且非常容易。现在,如果我做一个php-v。 (c)2002-2016 Zend Technologies 使用Xdebug v2.5.0,版权所有(c)2002-2016(C)2002-2008,Zend Technologies ,由Derick Rethans – Supplement
这可能是一个愚蠢的问题,我当然会检查你的答案是正确的,因为它为我安装了xdebug。但是,你怎么实际使用调试?工具在哪里,我如何知道它在工作等等? – Supplement
我编辑了我的文章,并添加了一个小的方法来配置Xdebug。 – Kyoya