[CentOS] problem rebuilding kvm package on centos 5.5

Thu Jun 24 18:26:59 UTC 2010
JohnS <jses27 at gmail.com>

On Thu, 2010-06-24 at 14:07 -0400, David Mansfield wrote:
> On Tue, 2010-06-22 at 15:11 -0400, William Hooper wrote:
> > On Tue, Jun 22, 2010 at 3:02 PM, David Mansfield <centos at dm.cobite.com> wrote:
> > > On Tue, 2010-06-22 at 09:25 -0700, Akemi Yagi wrote:
> > >> On Tue, Jun 22, 2010 at 8:02 AM, David Mansfield <centos at dm.cobite.com> wrote:
> > >> > Hi All:
> > >> > error: Failed build dependencies:
> > >> >        kernel-devel-x86_64 = 2.6.18-194.el5 is needed by kvm-83-164.9.x86_64
> > >> rpm -qa kernel\* | sort
> > >>
> > >
> > > Note: the above "yum-builddep" sucked in the "kernel-xen-devel" for some
> > > reason, not sure why.  Here's the output of the above:
> > >
> > > kernel-2.6.18-194.3.1.el5
> > > kernel-2.6.18-194.el5
> > > kernel-devel-2.6.18-194.3.1.el5
> > > kernel-headers-2.6.18-194.3.1.el5
> > > kernel-xen-devel-2.6.18-194.3.1.el5
> > 
> > The message says it is looking for kernel-devel-2.6.18-194.el5, but
> > you only have kernel-devel-2.6.18-194.3.1.el5.  Note the extra "3.1".
---
It needs the base Kernel-Devel 2.6.18-194 to build against, so when it
is installed it is put into that dir then linked to the other kernel
dirs when the kernel is updated. I wondered why that was so for a few
hours one night then found out through trial and error.

Neds, list posting on here lead to me figuring it out the kmod
nightmare.

What is your build command?

John