centos 5.6上安装httpd-devel apr-devel apr-util-devel yum时如何解决依赖包

发布于 2025-01-08 01:15:10 字数 5082 浏览 1 评论 0原文

我正在尝试安装 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

I am trying to install httpd-devel apr-devel apr-util-devel centos 5.6. i got dependency problem

 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.

can you anybody guide me how to resolve this issue?. I need to install this yum packages on the centos 5.6 machine.

httpd version is httpd-2.2.21-1.w5

apche version is

Server version: Apache/2.2.21 (Unix)
Server built: Nov 14 2011 18:03:07

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

↙温凉少女 2025-01-15 01:15:10

您甚至没有列出原始命令,因此我们无法确定您要如何安装它。

从输出来看,我的猜测是你有一个旧的 httpd/httpd-devel 包阻碍了你。除此之外,您还安装了 i386 和 x86_64 版本。

首先删除 httpd-devel

yum remove httpd-devel.i386 http-devel.x86_64

然后重试

yum -y install httpd-devel apr-devel

You don't even list your original command, so we can't be sure how you're trying to install it.

From the output, my guess is that you have an old httpd/httpd-devel package holding you back. On top of that you have both i386 and x86_64 versions of them installed.

Start by removing httpd-devel with

yum remove httpd-devel.i386 http-devel.x86_64

then try again with

yum -y install httpd-devel apr-devel
小帐篷 2025-01-15 01:15:10

您也可以尝试:yum update --skip-broken。它可能无法修复损坏的软件包,但至少可以安装其他更新。

You may also try: yum update --skip-broken. It may not fix broken packages but at least can install other updates.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文