环境centos 6.5。php 7.0.4
现在的问题是,本地环境已经是7.0.4但是提示版本不符合要求,如果说php本地版本本来就没有达到版本要求,则换扩展包,或者升级php
本地的真实环境
[root@localhost xdebug-2.5.5]# php -v
PHP 7.0.4 (cli) (built: Feb 24 2017 05:55:31) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
安装Xdebug扩展,执行./configure 外挂时提示:
checking Check for supported PHP versions… configure: error: not supported. Need a PHP version >= 5.5.0 and < 7.2.0 (found 5.4.45)
最后使用 ./configure -with-php-config=/usr/local/php7/bin/php-config
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
creating libtool
appending configuration tag “CXX” to libtool
configure: creating ./config.status
config.status: creating config.h
执行成功。
本文介绍了在CentOS 6.5环境下安装Xdebug扩展时遇到的版本不匹配问题及解决方法。通过调整配置和使用特定命令成功解决了版本检查失败的情况。

510

被折叠的 条评论
为什么被折叠?



