kernel source and nVidia drivers - Start Over

Jonathan Berry berryja at gmail.com
Mon Jan 16 05:07:35 UTC 2006


On 1/15/06, Bob Hartung <rwhart at mchsi.com> wrote:
> Note: in earlier posts, yum update kernel-devel downloaded and installed
> 1.6.14-14xx rather then 1656.  It took me a long time to figure this out.
>
> Problem:  updated to kernel-2.6.14-1.1656 and can't get nVidia drivers
> compiled.
>
> Downloaded kernel-2.6.14-1.1656_FC4.src.rpm and installed with rpm -Uvh
>
> cd'd to /usr/src/redhat/SPECS
>
>   ran rpmbuild -bp --target $(arch) kernel-2.6.spec
>
>   copied the resulting linux-2.6.14 subdirectory to /usr/src and made a
> sym link 'linux' to /usr/src/linux-2.6.14
>
>   tried to again build the nVidia driver by running:
>      NVIDIA-Linux-x86-1.0-8178-pkg1.run
>
>   this again failed saying that /usr/src/linux/include/linux/kernel.h
> was not installed, but it is.  Any ideas?
>
> Thanks for putting up with this!
>
> Bob

Okay.  How about we start over and do it the right way?  You really do
not want to go through the trouble of doing the source rpm stuff just
to compile the nVidia drivers.  What you want is the kernel-devel
package.  It is designed specifically for your problem.  Once you get
it installed correctly, you won't have to worry with it again as yum
will update it with your kernel.  Much better than having to get the
src.rpm and do an rpmbuild every time...
Undo everything you have with the manual source stuff (especially any
links you made) and try installing the kernel-devel rpm instead.  Make
sure you get the right version and that it installs correctly.  If
some link you made manually is in the way, it might not work right.

Jonathan




More information about the fedora-list mailing list