NVIDIA on 11.2: kernel header file ‘/usr/src/linux/include/linux/version.h’ does not exist
October 18, 2009 around 6am (openSUSE)If you compiled the NVIDIA driver on openSUSE 11.2, while you had all the relevant packages installed (kernel-source, kernel-default-devel if you have the default kernel), you might have been getting this error:
The kernel header file '/usr/src/linux/include/linux/version.h' does not exist.
The most likely reason for this is that the kernel source files in '/usr/src/linux' have not been
configured.
Well, despite the NVIDIA run file looking for the files in the wrong place, you can fix this error by using the more recent NVIDIA driver: NVIDIA-Linux-x86-185.18.36-pkg1.run
Thanks to all those who helped in #suse
cd /usr/src/linux
make cloneconfig
make prepare
http://en.opensuse.org/NVIDIA/The_hard_way#Prepare_kernel_source
Cheers
-J
That way isn’t recommended as no module should ever use /usr/src/linux It should always be using /lib/modules/….build/
Just install kernel-desktop-devel.
kernel-desktop-devel _was_ installed.
Great !!!, thanks a lot cyberorg, it works on my openSUSE 11.2 with custom kernel.