Linux display driver for CUDA on new kernel

I tried to install linux display driver for CUDA on FC 6 of the kernel 2.6.22.2-42. But when I specify the directory for --kernel-source-path, it complains the version.h file can’t be found.

I did download and install the kernel source. The version.h file is NOT under /usr/src/redhat/BUILD/kernel-2.6.22/linux-2.6.22.i686/include/linux, instead, I successfully installed the driver for kernel 2.6.20 and this header file does exist in the same directory (except 20 instead of 22). So how could I install the driver?

Please see:
http://www.nvnews.net/vbulletin/showthread.php?t=72490

Thanks, but it doesn’t help.

And for kernel 2.6.20, I used same method and the version.h does exist under the /usr/src/redhat/BUILD/kernel-2.6.20/linux-2.6.20.i686/include/linux.
But there’s no such file under /usr/src/redhat/BUILD/kernel-2.6.22/linux-2.6.22.i686/include/linux for the new kernel 2.6.22.

If you’re using an official Fedora kernel, then you should not need to use the --kernel-source-path variable. Its not clear from your post where you obtained the kernel & corresponding source that you’re running. Please attach the installer log.