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.
the
cd /usr/src/linux
make cloneconfig
make prepare
worked for me, but landed with another problem
/tmp/selfgz8220/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c: In function
‘nv_kern_open’:
/tmp/selfgz8220/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c:2188: warnin
g: initialization from incompatible pointer type
/bin/sh: scripts/genksyms/genksyms: No such file or directory
make[3]: *** [/tmp/selfgz8220/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.
o] Error 1
make[2]: *** [_module_/tmp/selfgz8220/NVIDIA-Linux-x86_64-190.53-pkg2/usr/sr
c/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
-> Error.
installed kernel-desktop-devel, it worked to a extend then, I reinsalled all the kernel modules and rebooted the system, it worked for me
Thanks for the input