I’ve installed Nvidia drivers from source in the past – but not on openSUSE.
I wiped my drive today and did a clean install of 11.1 RC1 x86_64. (My first foray into 64 bit FWIW)
I tried to install NVIDIA-Linux-x86_64-177.82-pkg2.run.
I have installed make, gcc, kernel-source, kernel-syms, and linux-kernel-headers.
When I try to install I get this error:
The kernel header file
'/lib/modules/2.6.27.7-8-default/build/include/linux/kernel.h' does not
exist. The most likely reason for this is that the kernel source path
'/lib/modules/2.6.27.7-8-default/build' is incorrect. Please make sure
you have installed the kernel source files for your kernel and that they
are properly configured; on Red Hat Linux systems, for example, be sure
you have the 'kernel-source' or 'kernel-devel' RPM installed. If you
know the correct kernel source files are installed, you may specify the
kernel source path with the '--kernel-source-path' command line option.
I have verified that kernel.h does not exist at the location specified in the error. But I don’t know what I should be doing to make it exist…
Any ideas?
– Joe
Check the version of kernel-source. An upgrade I did last night upgraded the kernel, but not kernel source, which have to match. I downgraded the kernel to match kernel-source and the Nvidia driver installed fine.
There is another thread on here about kernel-source. Not sure when they will match in the upgrades. Last time I checked they were still out of sync.
converted wrote:
>
> I’ve installed Nvidia drivers from source in the past – but not on
> openSUSE.
>
> I wiped my drive today and did a clean install of 11.1 RC1 x86_64. (My
> first foray into 64 bit FWIW)
>
> I tried to install NVIDIA-Linux-x86_64-177.82-pkg2.run.
>
> I have installed make, gcc, kernel-source, kernel-syms, and
> linux-kernel-headers.
>
> When I try to install I get this error:
>
>
> Code:
> --------------------
> The kernel header file
> ‘/lib/modules/2.6.27.7-8-default/build/include/linux/kernel.h’ does not
> exist. The most likely reason for this is that the kernel source path
> ‘/lib/modules/2.6.27.7-8-default/build’ is incorrect. Please make sure
> you have installed the kernel source files for your kernel and that they
> are properly configured; on Red Hat Linux systems, for example, be sure
> you have the ‘kernel-source’ or ‘kernel-devel’ RPM installed. If you
> know the correct kernel source files are installed, you may specify the
> kernel source path with the ‘–kernel-source-path’ command line option.
> --------------------
>
>
> I have verified that kernel.h does not exist at the location specified
> in the error. But I don’t know what I should be doing to make it
> exist…
>
> Any ideas?
>
> – Joe
>
>
If you can confirm that the kernel and the sources match by using YaST to see which are installed then when trying to install the Nvidia package ( running on old memories here ) use as root :
cd /usr/src/linux
make cloneconfig
make prepare
<this will prepare the kernel source so that you can compile external modules, then cd back to the Nvidia package and issue:>
sh nvidia-<blah-blah>.run --kernel-source-path=/usr/src/linux
If memory serves me right that should do it.
HTH
–
Mark…
Nil illegitimi carborundum