【问题标题】:Error when I try to install php 5.4尝试安装 php 5.4 时出错
【发布时间】:2015-06-24 05:49:23
【问题描述】:

当我尝试在 cents 6.4 上安装 php 5.4 时出现此错误

php - v

PHP 5.3.3 (cli) (built: Oct 30 2014 20:12:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


[root@centos145 ~]# rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm
Retrieving http://repo.webtatic.com/yum/el6/latest.rpm
warning: /var/tmp/rpm-tmp.LytgA6: Header V4 DSA/SHA1 Signature, key ID cf4c4ff9: NOKEY
Preparing...                ########################################### [100%]
        file /etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-andy from install of webtatic-release-6-5.noarch conflicts with file from package webtatic5-release-5.1-4.noarch
       file /etc/yum.repos.d/webtatic-archive.repo from install of webtatic-release-6-5.noarch conflicts with file from package webtatic5-release-5.1-4.noarch
        file /etc/yum.repos.d/webtatic-testing.repo from install of webtatic-release-6-5.noarch conflicts with file from package webtatic5-release-5.1-4.noarch
[root@centos145 ~]# yum install php54w
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.besthosting.ua
 * epel: epel.besthosting.ua
 * extras: mirror.besthosting.ua
 * updates: mirror.besthosting.ua
 * webtatic-el5: uk.repo.webtatic.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php54w.x86_64 0:5.4.39-1.w5 will be installed
--> Processing Dependency: php54w-common = 5.4.39-1.w5 for package: php54w-5.4.39-1.w5.x86_64
--> Processing Dependency: php54w-cli = 5.4.39-1.w5 for package: php54w-5.4.39-1.w5.x86_64
--> Processing Dependency: libssl.so.6()(64bit) for package: php54w-5.4.39-1.w5.x86_64
--> Processing Dependency: libcrypto.so.6()(64bit) for package: php54w-5.4.39-1.w5.x86_64
--> Running transaction check
---> Package openssl098e.x86_64 0:0.9.8e-18.el6_5.2 will be installed
---> Package php54w-cli.x86_64 0:5.4.39-1.w5 will be installed
---> Package php54w-common.x86_64 0:5.4.39-1.w5 will be installed
--> Processing Dependency: libcurl.so.3()(64bit) for package: php54w-common-5.4.39-1.w5.x86_64
--> Processing Conflict: php54w-common-5.4.39-1.w5.x86_64 conflicts php-common < 5.4.0
--> Finished Dependency Resolution
Error: php54w-common conflicts with php-common-5.3.3-40.el6_6.x86_64
Error: Package: php54w-common-5.4.39-1.w5.x86_64 (webtatic-el5)
       Requires: libcurl.so.3()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@centos145 ~]#

你能帮帮我吗?

【问题讨论】:

标签: php centos installation centos6


【解决方案1】:

对于 CentOS 6,PHP 5.3.3 是 PHP 的最新版本,可通过 CentOS 官方软件包存储库获得。请记住,尽管 PHP 5.3.3 于 2010 年 7 月 22 日发布,但官方 CentOS 6 PHP 软件包已于 2013 年 11 月 24 日更新。为什么?关键错误修复被向后移植。有关更多信息,请参阅此问题:“为什么 yum 在 CentOS 上安装过时的软件包?(特别是 PHP 5.1)如何修复?”

如果您想使用更新版本的 PHP,Les RPM de Remi 通过可添加到 yum 包管理器的存储库提供 CentOS PHP 包。要将其添加为 yum 存储库,follow the site's instructions

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-09-15
    • 2017-10-11
    • 2015-01-17
    • 2013-11-13
    • 2018-03-05
    • 2015-12-18
    相关资源
    最近更新 更多