如何在 Ubuntu 16.04 上安装 php-xml?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46365374/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install php-xml on Ubuntu 16.04?
提问by galatia
I have php7.0
installed on Ubuntu 16.04 and I'm trying to install a forum software in apache2, but I get the following error:
我已经php7.0
安装在 Ubuntu 16.04 上,我正在尝试在 apache2 中安装论坛软件,但出现以下错误:
In order to function correctly, the PHP XML/DOM extension needs to be available.
为了正常运行,PHP XML/DOM 扩展需要可用。
I tried to execute
我试图执行
sudo apt-get install php-xml
sudo apt-get install php7.0-xml
but these give me the following error:
但这些给了我以下错误:
php-xml: Depends: php7.1-xml but it is not going to be installed
php-xml: 依赖: php7.1-xml 但它不会被安装
When I try to install php7.1
from a PPA, I still get issues of dependencies from other PHP modules.
当我尝试php7.1
从 PPA安装时,我仍然遇到来自其他 PHP 模块的依赖问题。
Any ideas how I can get php-xml
installed without any dependency issues?
任何想法如何php-xml
在没有任何依赖性问题的情况下安装?
采纳答案by kingraphaii
Can you try installing the .deb
files manually from here https://launchpad.net/ubuntu/xenial/+package/php-xml
您可以尝试.deb
从这里手动安装文件https://launchpad.net/ubuntu/xenial/+package/php-xml