我正在尝试在最近升级的Ubuntu 20.04.1中安装xdebug。
当我将phpinfo()的输出放置在https://xdebug.org/wizard中时, 我得到:
Installation Wizard
Summary
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: no
Zend Server: no
PHP Version: 7.2.34
Zend API nr: 320170718
PHP API nr: 20170718
Debug Build: no
Thread Safe Build: no
OPcache Loaded: no
Configuration File Path: /opt/lampp/etc
Configuration File: /opt/lampp/etc/php.ini
Extensions directory: /opt/lampp/lib/php/extensions/no-debug-non-zts-20170718
安装建议我安装版本:xdebug-3.0.1, 但是按照指示操作后,终端显示以下错误信息:
The following packages have unmet dependencies:
php-dev : Depends: php7.4-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我该如何解决这个问题?我应该安装旧版本的xdebug以兼容我的php7.2版本吗?
提前致谢。