Well, not so long ago I tried to update my kernel, and of course, once the system reboots, X won't load. That's right: it's time to recompile my NVIDIA drivers again! But what's this? I go to compile the drivers and I get the following:
ERROR: If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
The first thing I thought to do was to check my kernel sources were all installed.
# yum update kernel-*
It ran through, and sure enough, everything was up-to-date. After a little bit of pecking, I discovered that there is a patch for this one. All I had to do was download the patch, and let the NVIDIA installer create a new customized installer using said patch:
# wget http://leigh123linux.fedorapeople.org/pub/patches/nvidia_kernel-3.0-rc1.patch
# sh ./NVIDIA-Linux-x86_64-270.41.19.run --apply-patch nvidia_kernel-3.0-rc1.patch
Once that was done, I just ran the new custom installer:
# sh ./NVIDIA-Linux-x86_64-270.41.19-custom.run
Then launch back into runlevel 5:
# init 5
...And presto! X is back in it's usual glory.