2014-04-29 93 views
1

我想在CentOS虛擬機上安裝php55w包。我之前安裝了php54,並在更新新軟件包之前刪除了所有舊的php軟件包。當我做sudo百勝安裝php55w我得到以下錯誤:在CentOS上安裝php55w時出錯

Setting up Install Process 
Resolving Dependencies 
--> Running transaction check 
---> Package php55w.x86_64 0:5.5.11-1.w5 will be installed 
--> Processing Dependency: php55w-common = 5.5.11-1.w5 for package: php55w-5.5.11-1.w5.x86_64 
--> Processing Dependency: php55w-cli = 5.5.11-1.w5 for package: php55w-5.5.11-1.w5.x86_64 
--> Processing Dependency: httpd-mmn = 20051115 for package: php55w-5.5.11-1.w5.x86_64 
--> Processing Dependency: httpd for package: php55w-5.5.11-1.w5.x86_64 
--> Processing Dependency: libssl.so.6()(64bit) for package: php55w-5.5.11-1.w5.x86_64 
--> Processing Dependency: libcrypto.so.6()(64bit) for package: php55w-5.5.11-1.w5.x86_64 
---> Package php55w-opcache.x86_64 0:5.5.11-1.w5 will be installed 
--> Running transaction check 
---> Package httpd.x86_64 0:2.2.15-15.el6.centos.1 will be installed 
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-15.el6.centos.1.x86_64 
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.1.x86_64 
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-15.el6.centos.1.x86_64 
---> Package openssl098e.x86_64 0:0.9.8e-17.el6.centos.2 will be installed 
---> Package php55w-cli.x86_64 0:5.5.11-1.w5 will be installed 
---> Package php55w-common.x86_64 0:5.5.11-1.w5 will be installed 
--> Processing Dependency: libcurl.so.3()(64bit) for package: php55w-common-5.5.11-1.w5.x86_64 
--> Running transaction check 
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed 
---> Package httpd-tools.x86_64 0:2.2.15-15.el6.centos.1 will be installed 
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed 
---> Package php55w-common.x86_64 0:5.5.11-1.w5 will be installed 
--> Processing Dependency: libcurl.so.3()(64bit) for package: php55w-common-5.5.11-1.w5.x86_64 
--> Finished Dependency Resolution 
Error: Package: php55w-common-5.5.11-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 

我現在很長時間卡住了。不知道如何解決這個問題。我對CentOS也比較陌生。如果您有任何問題,請告訴我!

感謝,

+0

也許這可以幫助您:https://www.centos.org/forums/viewtopic.php?t=5028 – aldanux

+0

我啓用了rpmforge,即使這沒有幫助。看到這篇文章之前張貼在這裏:( –

回答

1
Error: Package: php55w-common-5.5.11-1.w5.x86_64 (webtatic-el5) 
      Requires: libcurl.so.3()(64bit) 

可能的php55w,共同打造具有libcurl.so.3更多的新版本。

安裝php55w-common之前,您需要更新libcurl包。

還要檢查

# yum provides '*/libcurl.so.*'; 

可能libcurl.so.3沒有包裝。

+0

它已經更新到libcurl-7.28.1-2.el6.x86_64和libcurl-devel-7.28.1-2.el6.x86_64 –

+0

是它沒有打包。它只有libcurl.so .4 如何獲取libcurl.so.3?實際上,Google一直在使用谷歌搜索。 –

+0

什麼是鏈接是用來安裝rpmforge回購? – user345352353

4

您已經安裝webtatic-EL5的EL6服務器上,嘗試EL6版本

yum remove webtatic5-release 
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm 
+0

它幫助我在6.6版本 – drupality