So my #2 machine at work runs Fedora Core 6. I recently upgraded the card in it, and the nVidia driver refused to install, because it couldn’t find an include, linux/config.h. This include file was removed by Fedora for Core 6; it’s use is deprecated anyway by the kernel maintainers, so nVidia should go back and update their legacy drivers or something.
I did some googling, and the correct solution here is to extract the package, and modify a file, like so:
su
mv /path/to/nvidia/driver/that/you/downloaded/b4/u/did/su .
sh NVIDIA-Linux-x86-1.0.version-pkg1.run -x
cd NVIDIA-Linux-x86-1.0.version-pkg1/usr/src/nv
vi nv-linux.h
[replace #include
with #include
]
cd ../../../..
./nvidia-installer
And that’s all there is to it. Now edit your xorg.conf if you need to.