[英]Wrong version in pecl install xdebug
I am trying to install xdebug with pecl install xdebug on PHP 5.5.27我正在尝试在 PHP 5.5.27 上使用pecl install xdebug 安装 xdebug
According to PECL website https://pecl.php.net/package/xdebug latest stable version of xdebug is 2.3.3根据PECL网站https://pecl.php.net/package/xdebug xdebug的最新稳定版本是2.3.3
However command above is trying to install xdebug 2.3.2但是上面的命令正在尝试安装xdebug 2.3.2
What is wrong with this?这有什么问题?
When using pecl
program to install a package, you can install a specific version, or upgrade to a specific version:使用
pecl
程序安装包时,可以安装特定版本,或者升级到特定版本:
pecl install xdebug-2.3.3
Even if it's not the case here if one needs to downgrade a package, the force ( -f
) option may be required to make it work:即使这里不是这种情况,如果需要降级软件包,也可能需要 force (
-f
) 选项才能使其工作:
pecl install -f xdebug-2.3.3
You need to download it manually:您需要手动下载:
wget http://xdebug.org/files/xdebug-2.3.3.tgz
tar -xvzf xdebug-2.3.3.tgz
cd xdebug-2.3.3
phpize
./configure
make
If you are running a tool like homestead you won't need further steps and do not forget to take backup before steps below.如果您正在运行像 homestead 这样的工具,则不需要进一步的步骤,并且不要忘记在执行以下步骤之前进行备份。
cp modules/xdebug.so /usr/lib/php5/20131226
Update /etc/php5/fpm/php.ini
zend_extension = /usr/lib/php5/20131226/xdebug.so
Restart the webserver重新启动网络服务器
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.