我正在尝试在CentOS虚拟机上安装php55w软件包。我之前安装了php54,并在更新新软件包之前删除了所有旧的PHP软件包。当我做sudo yum安装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 :(得分:4)
您已在el6服务器上安装了webtatic-el5,请尝试使用el6版本
yum remove webtatic5-release
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
答案 1 :(得分:1)
Error: Package: php55w-common-5.5.11-1.w5.x86_64 (webtatic-el5)
Requires: libcurl.so.3()(64bit)
可能是php55w-common build以及更多新版本的libcurl.so.3。
在安装php55w-common之前,您需要更新libcurl包。
同时检查
# yum provides '*/libcurl.so.*';
可能是libcurl.so.3没有打包。