我正在尝试安装httpd-devel apr-devel apr-util-devel centos 5.6。我有依赖性问题
Resolving Dependencies
--> Running transaction check
---> Package apr-devel.i386 0:1.2.7-11.el5_6.5 set to be updated
--> Processing Dependency: apr = 1.2.7-11.el5_6.5 for package: apr-devel
--> Processing Dependency: libapr-1.so.0 for package: apr-devel
---> Package apr-devel.x86_64 0:1.2.7-11.el5_6.5 set to be updated
---> Package apr-util-devel.i386 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: apr-util = 1.2.7-11.el5_5.2 for package: apr-util-devel
--> Processing Dependency: openldap-devel for package: apr-util-devel
--> Processing Dependency: libaprutil-1.so.0 for package: apr-util-devel
--> Processing Dependency: db4-devel for package: apr-util-devel
--> Processing Dependency: expat-devel for package: apr-util-devel
---> Package apr-util-devel.x86_64 0:1.2.7-11.el5_5.2 set to be updated
---> Package httpd-devel.i386 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
--> Running transaction check
---> Package apr.i386 0:1.2.7-11.el5_6.5 set to be updated
---> Package apr-util.i386 0:1.2.7-11.el5_5.2 set to be updated
--> Processing Dependency: libsqlite3.so.0 for package: apr-util
--> Processing Dependency: libldap-2.3.so.0 for package: apr-util
--> Processing Dependency: libdb-4.3.so for package: apr-util
--> Processing Dependency: libexpat.so.0 for package: apr-util
--> Processing Dependency: libpq.so.4 for package: apr-util
--> Processing Dependency: liblber-2.3.so.0 for package: apr-util
---> Package db4-devel.x86_64 0:4.3.29-10.el5_5.2 set to be updated
---> Package expat-devel.x86_64 0:1.95.8-8.3.el5_5.3 set to be updated
---> Package httpd-devel.i386 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package openldap-devel.x86_64 0:2.3.43-12.el5_7.10 set to be updated
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3 set to be updated
---> Package db4.i386 0:4.3.29-10.el5_5.2 set to be updated
---> Package expat.i386 0:1.95.8-8.3.el5_5.3 set to be updated
---> Package httpd-devel.i386 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package openldap.i386 0:2.3.43-12.el5_7.10 set to be updated
--> Processing Dependency: libsasl2.so.2 for package: openldap
---> Package postgresql-libs.i386 0:8.1.23-1.el5_7.3 set to be updated
---> Package sqlite.i386 0:3.7.0.1-1.el5.art set to be updated
---> Package sqlite.x86_64 0:3.7.0.1-1.el5.art set to be updated
--> Running transaction check
---> Package cyrus-sasl-lib.i386 0:2.1.22-5.el5_4.3 set to be updated
---> Package httpd-devel.i386 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.3-53.el5.centos.3 set to be updated
--> Processing Dependency: httpd = 2.2.3-53.el5.centos.3 for package: httpd-devel
--> Finished Dependency Resolution
httpd-devel-2.2.3-53.el5.centos.3.i386 from updates has depsolving problems
--> Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd- devel-2.2.3-53.el5.centos.3.i386 (updates)
httpd-devel-2.2.3-53.el5.centos.3.x86_64 from updates has depsolving problems
--> Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd-devel- 2.2.3-53.el5.centos.3.x86_64 (updates)
Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd- devel-2.2.3-53.el5.centos.3.i386 (updates)
Error: Missing Dependency: httpd = 2.2.3-53.el5.centos.3 is needed by package httpd- devel-2.2.3-53.el5.centos.3.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
你能指导我如何解决这个问题吗?我需要在centos 5.6机器上安装这个yum软件包。
httpd版本为httpd-2.2.21-1.w5
apche版本
服务器版本:Apache / 2.2.21(Unix) 服务器内置:2011年11月14日18:03:07
答案 0 :(得分:3)
您甚至没有列出原始命令,因此我们无法确定您是如何安装它的。
从输出中,我的猜测是你有一个旧的httpd / httpd-devel包阻止你。最重要的是,你安装了i386和x86_64版本。
首先使用
删除httpd-develyum remove httpd-devel.i386 http-devel.x86_64
然后再次尝试
yum -y install httpd-devel apr-devel
答案 1 :(得分:0)
您也可以尝试: yum update --skip-broken 。它可能无法修复损坏的软件包,但至少可以安装其他更新。