奔溃啊,安装 php70-xml

2018-06-12 11:28:54 +08:00
 mmnnyycc

http://rpmfind.net/linux/rpm2html/search.php?query=php70-php-xml php 版本 7.0.30 ,centos 7.4 从这里下载了 RedHat EL 7 for x86_64 的 php-xml.

无限的依赖,最后崩溃了

1.rpm -ivh ./php70-php-xml-7.0.30-1.el7.remi.x86_64.rpm
错误:依赖检测失败:
	php70-php-common(x86-64) = 7.0.30-1.el7.remi 被 php70-php-xml-7.0.30-1.el7.remi.x86_64 需要
2.下载 php70-php-common
rpm -ivh ./php70-php-common-7.0.30-1.el7.remi.x86_64.rpm
错误:依赖检测失败:
	php70-runtime 被 php70-php-common-7.0.30-1.el7.remi.x86_64 需要
	php70-php-json(x86-64) = 7.0.30-1.el7.remi 被 php70-php-common-7.0.30-1.el7.remi.x86_64 需要

3.rpm -ivh ./php70-php-json-7.0.30-1.el7.remi.x86_64.rpm
错误:依赖检测失败:
	php70-php-common(x86-64) = 7.0.30-1.el7.remi 被 php70-php-json-7.0.30-1.el7.remi.x86_64 需要

4.这两个互相依赖啊
rpm -ivh ./php70-php-json-7.0.30-1.el7.remi.x86_64.rpm  ./php70-php-common-7.0.30-1.el7.remi.x86_64.rpm ./php70-runtime-1.0-5.el7.remi.x86_64.rpm
错误:依赖检测失败:
	/usr/sbin/semanage 被 php70-runtime-1.0-5.el7.remi.x86_64 需要
	environment-modules 被 php70-runtime-1.0-5.el7.remi.x86_64 需要
	scl-utils 被 php70-runtime-1.0-5.el7.remi.x86_64 需要
5.yum install semanage
已加载插件: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
没有可用软件包 semanage。
错误:无须任何处理



2275 次点击
所在节点    程序员
4 条回复
tempdban
2018-06-12 11:40:01 +08:00
1.yum 是可以装 rpm 包的。
2.https://www.jianshu.com/p/7c69e444b04b
kslr
2018-06-12 13:03:05 +08:00
真的菜鸡,程序错误不看,拿着搜索答案到处找问题。
mmnnyycc
2018-06-12 13:48:23 +08:00
@tempdban 谢谢
mmnnyycc
2018-06-12 15:22:09 +08:00
@tempdban 真厉害,真的可以

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/462398

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX