From: Greg Russell on
I'm attempting to compile a video-in driver (rivatv-0.8.6) on CentOS 5.3
but am meeting an error:

$ ./configure
Checking for configured kernel headers... not found
*** ERROR:
*** In order to build RivaTV you need a set of kernel headers properly
*** configured for the kernel you intend to use RivaTV with.

$ uname -r; rpm -qa | grep kernel-headers
2.6.18-128.1.10.el5
kernel-headers-2.6.18-128.7.1.el5

How can I match the kernel-headers with the kernel, please? yum doesn't
seem to be able to "downdate" the package:

# yum localinstall kernel-headers-2.6.18-128.1.10.el5.i386.rpm
Loaded plugins: fastestmirror, priorities, protect-packages
Setting up Local Package Process
Examining kernel-headers-2.6.18-128.1.10.el5.i386.rpm: kernel-
headers-2.6.18-128.1.10.el5.i386
kernel-headers-2.6.18-128.1.10.el5.i386.rpm: does not update installed
package.
Nothing to do


From: Allen Kistler on
Greg Russell wrote:
>
> [snip]
>
> $ uname -r; rpm -qa | grep kernel-headers
> 2.6.18-128.1.10.el5
> kernel-headers-2.6.18-128.7.1.el5
>
> How can I match the kernel-headers with the kernel, please? yum doesn't
> seem to be able to "downdate" the package:
>
> [snip]

Downgrading is antithetical to yum's philosophy. So not only does yum
refuse to do it, yum will never do it. You need to use rpm.

rpm -Uvh --oldpackage <old-package-file>
From: Dave Gibson on
Greg Russell <me(a)invalid.org> wrote:
> I'm attempting to compile a video-in driver (rivatv-0.8.6) on CentOS 5.3
> but am meeting an error:
>
> $ ./configure
> Checking for configured kernel headers... not found
> *** ERROR:
> *** In order to build RivaTV you need a set of kernel headers properly
> *** configured for the kernel you intend to use RivaTV with.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It can't find the configured source for the running kernel.

> $ uname -r; rpm -qa | grep kernel-headers
> 2.6.18-128.1.10.el5
> kernel-headers-2.6.18-128.7.1.el5

That package contains the kernel headers against which glibc was built.
It's not the problem, leave it alone.

> How can I match the kernel-headers with the kernel, please? yum doesn't
> seem to be able to "downdate" the package:

You need to install your running kernel's source code. Look for a package
named something like kernel-source-2.6.18-128.1.10.el5.

Once you've got the source installed, cd into the directory and configure
it -- try "make modules_prepare".

If RivaTV's configure script still complains, use the --with-kernel
argument to specify the kernel source's location.

>
> # yum localinstall kernel-headers-2.6.18-128.1.10.el5.i386.rpm
> Loaded plugins: fastestmirror, priorities, protect-packages
> Setting up Local Package Process
> Examining kernel-headers-2.6.18-128.1.10.el5.i386.rpm: kernel-
> headers-2.6.18-128.1.10.el5.i386
> kernel-headers-2.6.18-128.1.10.el5.i386.rpm: does not update installed
> package.
> Nothing to do