
安装 lavavel,composer update 出现报错:phpunit/phpunit 6.5.8 requires ext-dom * -> the requested PHP extension dom is missing from your system
搜索问题,需要安装 php-xml。问题是:yum install php70w-xml:
[root@localhost ~]# yum install php70w-xml 已加载插件:fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.shu.edu.cn * epel: mirrors.tongji.edu.cn * extras: mirrors.shu.edu.cn * updates: mirrors.shu.edu.cn 没有可用软件包 php70w-xml。 错误:无须任何处理 然后搜索 https://webtatic.com/packages/php70/,翻墙下载安装之后还是没有可用的软件包,yum search
yum install epel-release rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 还是,没有可用的包。
[root@localhost ~]# yum list php7* 已加载插件:fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.shu.edu.cn * epel: mirrors.tongji.edu.cn * extras: mirrors.shu.edu.cn * updates: mirrors.shu.edu.cn 已安装的软件包 php70w.x86_64 7.0.30-1.w7 @webtatic php70w-cli.x86_64 7.0.30-1.w7 @webtatic php70w-common.x86_64 7.0.30-1.w7 @webtatic php70w-fpm.x86_64 7.0.30-1.w7 @webtatic php70w-gd.x86_64 7.0.30-1.w7 @webtatic php70w-mbstring.x86_64 7.0.30-1.w7 @webtatic php70w-mysqlnd.x86_64 7.0.30-1.w7 @webtatic php70w-pdo.x86_64 求问怎么安装这个啊
1 gabezhao 2018-06-11 17:10:55 +08:00 php.ini 配置里面开启了吗 |
2 9066v 2018-06-11 17:13:49 +08:00 安装 php7.0-xml 试试? |
3 zjsxwc 2018-06-11 17:14:38 +08:00 下载 源代码,然后编译安装,如果是 docker 的话直接进入拓展源码目录一行代码`docker-php-ext-install`编译安装 |
4 gabezhao 2018-06-11 17:14:40 +08:00 安装 xml 扩展 |
| 5 Symo 2018-06-11 17:15:03 +08:00 用三方源吧, 比如 remi |
10 kuretru 2018-06-11 17:27:36 +08:00 via iPhone 强烈推荐 ius 源 |
11 liuguang 2018-06-11 17:32:13 +08:00 xml 扩展默认安装的啊,,, |
12 Lwf1995 2018-06-11 17:34:33 +08:00 via Android laravel5.6 不是 php7.1 起步么 |
13 gouchaoer 2018-06-11 17:34:36 +08:00 用 remi 源,别用 epel 默认源 |
14 Lwf1995 2018-06-11 17:35:04 +08:00 via Android 我装 laravel 就没问题 |
15 U7Q5tLAex2FI0o0g 2018-06-11 17:38:14 +08:00 xml 难道不是默认安装的么? 看看 /etc/php.d/xml.ini 或者 /etc/php.ini |
16 zhoulouzi 2018-06-11 17:43:05 +08:00 添加完源后,试下 yum clean all && yum update && yum install php70w-xml |
17 defunct9 2018-06-11 17:53:00 +08:00 开 ssh,让我上去试试 |
21 kslr 2018-06-11 20:18:50 +08:00 via Android Php dom |
22 qqjt 2018-06-11 20:19:58 +08:00 php7.0w-json |
23 liaohongxing 2018-06-11 21:28:00 +08:00 ubuntu16.4lts 自带 php7.0 , 现在的版本是 php7.0.30 , ubuntu 官方跟随 php.net 升级 ,用 ubuntu server 吧。 apt install php7.0-xml 快速搞定 |
24 FYK 2018-06-11 22:25:38 +08:00 ubuntu 吧,这些会更方便些 |
25 hahaDashen 2018-06-12 02:12:06 +08:00 yum install php70w-xml Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/metalink | 7.5 kB 00:00 * epel: mirrors.sohu.com * webtatic: us-east.repo.webtatic.com base | 3.7 kB 00:00 epel | 3.2 kB 00:00 epel/primary | 3.2 MB 00:02 epel 12511/12511 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 webtatic | 3.6 kB 00:00 Setting up Install Process Package php70w-xml-7.0.30-1.w6.x86_64 already installed and latest version Nothing to do 我用的 http://mirror.webtatic.com/yum/el6/latest.rpm 这个 rpm (我 Centos6.9) 是有 xml 这个的 |
26 mmnnyycc OP @hahaDashen 没办法,用的 centos7 |
27 mmnnyycc OP |
28 zqcolor 2018-06-12 10:34:04 +08:00 我用的这个可以 sudo yum install php70u-xml |
29 mmnnyycc OP @zqcolor #28 不行,估计只能编译了 ``` [root@localhost ~]# yum install php70u-xml 已加载插件:fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nju.edu.cn * epel: mirrors.tongji.edu.cn * extras: mirrors.shu.edu.cn * updates: mirrors.cn99.com 没有可用软件包 php70u-xml。 错误:无须任何处理 ``` |
30 zqcolor 2018-06-12 10:42:14 +08:00 看来国内这几个源都没有这个 php-xml |