douchiwan1503 2014-08-04 15:21
浏览 183
已采纳

如何在CentOs中安装php-xml

I am Trying to install php-xml on CentOs 6.5

I type the command yum install php-xml

and I am getting this Error :

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.nac.net
 * epel: mirrors.einstein.yu.edu
 * extras: mirrors.maine.edu
 * rpmforge: repoforge.mirror.constant.com
 * updates: centos.mirror.constant.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.3.3-27.el6_5.x86_64
--> Running transaction check
---> Package libxslt.x86_64 0:1.1.26-2.el6_3.1 will be installed
---> Package php-xml.x86_64 0:5.3.3-27.el6_5 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-27.el6_5 for package: php-xml-5.3.3-27.el6_5.x86_64
--> Finished Dependency Resolution
Error: Package: php-xml-5.3.3-27.el6_5.x86_64 (updates)
           Requires: php-common(x86-64) = 5.3.3-27.el6_5
           Installed: php-common-5.4.31-1.el6.remi.x86_64 (@remi)
               php-common(x86-64) = 5.4.31-1.el6.remi
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               php-common(x86-64) = 5.3.3-26.el6
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               php-common(x86-64) = 5.3.3-27.el6_5
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

I am new to Cent Os and Linux so please Help me. I am Developer and not a System Admin so this is new for me.Please Help

Thanks in Advance

  • 写回答

2条回答 默认 最新

  • douna2917 2016-02-20 08:35
    关注

    The followings worked for me , I run this command

    yum --enablerepo remi install php-xml
    

    And restarted the Apache with this command

    sudo service httpd restart
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
  • doutangu4671 2014-08-04 15:27
    关注

    As far as I can see you need an older edition of php-common. So I will advice you to downgrade php-common:

    yum downgrade php php-common php-cli
    
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 burpsuite密码爆破
  • ¥15 关于#ubuntu#的问题,如何解决?(相关搜索:移动硬盘)
  • ¥15 scikit安装之后import不了
  • ¥15 Ros2编译一个使用opencv的c++节点的时候,报了这个错误,请问怎么解决啊
  • ¥15 人脸识别相关算法 YOLO,AI等
  • ¥15 spark问题方便加V17675797079
  • ¥15 Python代码不打印的原因
  • ¥20 微软SEAL库的安装和使用,VS2022环境配置问题
  • ¥15 数学问题也不知道那种类型的问题
  • ¥15 R作图的时候,文本框重叠了怎么办?