【问题标题】:Xdebug 2.7.2 Centos 7.3.2 PHP not supported problemXdebug 2.7.2 Centos 7.3.2 PHP 不支持问题
【发布时间】:2019-10-06 08:50:36
【问题描述】:

我正在尝试安装 Xdebug 2.7.2。在安装了 php 7.2.3 的 Centos7 机器上。

当我运行 ./configure 时,进程停止并出现错误和以下输出

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable Xdebug support... yes, shared
checking whether to enable Xdebug developer build flags... no
checking Check for supported PHP versions... configure: error: not supported. Need a PHP version >= 7.0.0 and < 7.4.0 (found 5.6.33)

我的机器上找不到安装的 php 5.6。

从命令行 php -v 向我显示“php 7.2.23”,并从本地 joomla 安装中看到我正在使用 php 7.2.23 的系统信息。

当我通过 yum 查找已安装的 php 时,我得到的是:

[root@192 etc]# yum list installed | grep php
php.x86_64                            7.2.23-1.el7.remi              @remi-php72
php-cli.x86_64                        7.2.23-1.el7.remi              @remi-php72
php-common.x86_64                     7.2.23-1.el7.remi              @remi-php72
php-devel.x86_64                      7.2.23-1.el7.remi              @remi-php72
php-fedora-autoloader.noarch          1.0.0-1.el7                    @epel      
php-gd.x86_64                         7.2.23-1.el7.remi              @remi-php72
php-json.x86_64                       7.2.23-1.el7.remi              @remi-php72
php-mbstring.x86_64                   7.2.23-1.el7.remi              @remi-php72
php-mysqlnd.x86_64                    7.2.23-1.el7.remi              @remi-php72
php-opcache.x86_64                    7.2.23-1.el7.remi              @remi-php72
php-pdo.x86_64                        7.2.23-1.el7.remi              @remi-php72
php-pear.noarch                       1:1.10.9-3.el7.remi            @remi-php72
php-process.x86_64                    7.2.23-1.el7.remi              @remi-php72
php-sqlsrv.x86_64                     5.6.1-2.el7.remi.7.2           @remi-php72
php-xml.x86_64                        7.2.23-1.el7.remi              @remi-php72

我不知道awk在哪里找到php 5.6并停止安装xdebug。

提前谢谢你。

【问题讨论】:

    标签: xdebug


    【解决方案1】:

    当您使用 remi-php72 存储库中的 php 7.2 时,您可以简单地从同一存储库安装大部分扩展。无需构建任何东西。

    Wizard instructions

    简而言之:

    # yum-config-manager --enable remi-php72
    # yum install php-pecl-xdebug
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-01-15
      • 2015-10-18
      • 2023-04-04
      • 2020-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多