V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
mmnnyycc
V2EX  ›  程序员

奔溃啊,安装 php70-xml

  •  
  •   mmnnyycc · 2018-06-12 11:28:54 +08:00 · 2260 次点击
    这是一个创建于 2116 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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。
    错误:无须任何处理
    
    
    
    
    4 条回复    2018-06-12 15:22:09 +08:00
    tempdban
        1
    tempdban  
       2018-06-12 11:40:01 +08:00 via Android   ❤️ 1
    1.yum 是可以装 rpm 包的。
    2.https://www.jianshu.com/p/7c69e444b04b
    kslr
        2
    kslr  
       2018-06-12 13:03:05 +08:00 via Android
    真的菜鸡,程序错误不看,拿着搜索答案到处找问题。
    mmnnyycc
        3
    mmnnyycc  
    OP
       2018-06-12 13:48:23 +08:00
    @tempdban 谢谢
    mmnnyycc
        4
    mmnnyycc  
    OP
       2018-06-12 15:22:09 +08:00
    @tempdban 真厉害,真的可以
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3347 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:37 · PVG 21:37 · LAX 06:37 · JFK 09:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.