2015-04-17 205 views
0

我得到這個錯誤,當我嘗試安裝在美分PHP 5.4 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 


[[email protected] ~]# 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 
[[email protected] ~]# 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 
[[email protected] ~]# 

你能幫助我嗎?

+0

也許這個人可以幫忙:http://unix.stackexchange.com/questions/90819/php-upgrade-error-php-5-3-3-to-php-5-4-19-on-centos - -4 –

回答

0

對於CentOS 6,PHP 5.3.3是可通過官方CentOS軟件包存儲庫獲得的最新PHP版本。請記住,儘管PHP 5.3.3於2010年7月22日發佈,官方的CentOS 6 PHP包已於2013年11月24日更新。爲什麼?重要的錯誤修復被反向移植。有關更多信息,請參閱此問題:「爲什麼在CentOS上yum安裝的過期軟件包(特別是PHP 5.1)如何解決?」

如果您想使用更新版本的PHP,Les RPM de Remi會通過存儲庫提供CentOS PHP包,您可以將其添加到yum包管理器中。將其作爲yum存儲庫添加,follow the site's instructions