只为 PHP7.1 安装 Xdebug 扩展 [英] Install Xdebug extension only for PHP7.1

查看:48
本文介绍了只为 PHP7.1 安装 Xdebug 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Ubuntu 16.04 上安装了 PHP 7.1.当我尝试使用 apt-get install php-xdebug 安装 Xdebug 时,我在目录 5.6、7.0 和 7.1 中得到 xdebug.ini.

I have PHP 7.1 on Ubuntu 16.04 installed. When I'm trying to install Xdebug by using apt-get install php-xdebug, I'm getting xdebug.ini in directories 5.6, 7.0 and 7.1.

我不需要 /php/5.6/mods-available/xdebug.ini/php/7.0/mods-available/xdebug.ini 扩展,因为我只使用 PHP 7.1 版本.

I don't need /php/5.6/mods-available/xdebug.ini and /php/7.0/mods-available/xdebug.ini extensions, because I'm using only PHP 7.1 version.

有什么想法吗?

谢谢.

推荐答案

这是因为 php-xdebug 有歧义,会下载默认包,其中包含多个版本的 php 兼容性,尝试去 xdebug 站点下载代码,然后制作/构建它 https://xdebug.org/

It's because php-xdebug is ambiguous and will download the default package which will contain multiple versions for php compatibility, try going to xdebug site and download the code, then make/build it https://xdebug.org/

这篇关于只为 PHP7.1 安装 Xdebug 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆