在CentOS 5.7 x86_64上安装httpd-devel

我试图在我的Media Temple DV 4服务器上安装httpd-devel。 我试过这个:

yum install -y httpd-devel 

但是安装失败:

 --> 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。 所以我检查了我的httpd版本。 我检查了我目前的版本:

 # yum info httpd ... Installed Packages Name : httpd Arch : x86_64 Epoch : 1 Version : 2.2.19 Release : 11072010 ... 

好吧,所以httpd-devel是要求2.2.3-53,但我只有2.2.19。 所以我尝试更新httpd:

 # yum update httpd .... No Packages marked for Update 

所以用我有限的知识卡住了,我不能安装httpd-devel,因为它需要更新版本的httpd。 但是我不能更新httpd,因为没有软件包被标记为更新。

非常感谢,如果有人能够指出我在这一个正确的方向。

尝试运行“yum clean all”并重试。

这将清除yum使用的caching。

2.2.19> 2.2.3

我想你一定是从另一个版本库安装了httpd。

什么:

百胜重新分配

返回?

编辑:rpm -qi httpd输出:

 [root@centos57 ~]# rpm -qi httpd Name : httpd Relocations: (not relocatable) Version : 2.2.3 Vendor: CentOS Release : 53.el5.centos.3 Build Date: Thu 20 Oct 2011 09:05:30 PM UTC Install Date: Mon 21 Nov 2011 04:53:32 PM UTC Build Host: builder10.centos.org Group : System Environment/Daemons Source RPM: httpd-2.2.3-53.el5.centos.3.src.rpm Size : 3488328 License: Apache Software License Signature : DSA/SHA1, Thu 20 Oct 2011 09:13:11 PM UTC, Key ID a8a447dce8562897 URL : http://httpd.apache.org/ Summary : Apache HTTP Server Description : The Apache HTTP Server is a powerful, efficient, and extensible web server. 

它看起来像httpd-x86_64包与32位版本冲突。

一个简单的yum remove httpd.i386 -y && yum install httpd.x86_64 httpd-devel.x86_64 -y应该做的伎俩。