How to configure the kernel source files in order to be able to install nvidia driver?

When trying to install the nvidia graphics driver I get the following error-message:

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.

How do I configure the kernel source files?

Thanks in advance/
larilund

What is your openSUSE level?
How are you trying to install? For simple installing you shouldn’t need that. For building that could be possible.

Please be more informative, as I ahve read allready in anther thread today: our crystal balls are in repair.

I am using 11.4 x86_64.
I am installing in konsole mode, not through simple installing in YaST.
So, when I run sh ./NVIDIA-Linux-x86_64-275.09.07.run I get the above mentioned error-message.
I have installed everything necessary i.e. gcc,make,kernel devel and kernel-desktop-devel.
gcc version 4.5-19.1
make version 3.82-140.1
My kernel devel version is: 2.6.37.6-0.5.1.
My kernel-desktop-devel version is: 2.6.37.6-0.5.1

By the way. Does it matter if I install kernel-source instead of kernel-devel?

Thanks/
larilund

Most of the people here install the Nvidia driver using YaST/zypper from the Nvidia repository. Thus when you say “I install” without further explanation we think of that simple way of doing it (and you the certainly do not need kernel sources or the like).

Also when you say you use a console/terminal and then conclude that you therefore do not use YaST this is a bit strange. You can use YaST from a console (the command yast), but most will use zypper installing from a console.

But when you want to install your nvidia driver “the hard way” (you are not alone in wanting to do that), then use “nvidia the hard way” in the search function of these forums. That will give you a lot of results and one of them is Installing the nVIDIA Video Driver the Hard Way - Blogs - openSUSE Forums but there are more of interest.

hi guys,
I’m doin the same because “NVIDIA Accelerated Graphics Driver for Linux (96.43.23)” require NO- X-Server Running mode and root login…

if someone know about the nVidia error message that display this output:

ERROR:
The kernel header file ‘lib/modules/3.7.10-1.1-default/build/include/linux/version.h’
does not exist. The most likely reason for this is that the kernel source files in
‘/lib/modules/3.7.10-1.1-default/build’ have not been configured.

Yes means what it says. You need to install the kernel source package for the running kernel.

how can do it?!where I can found a tutorial for this kind of procedure?!

I’m new intro using linux OS but maybe openSuse is not the best for start with my pc…I dunno it’s about a week and I’ve not yet install it properly…

thanks bye

On 2013-09-15 03:06, keoshy wrote:
>
> how can do it?!where I can found a tutorial for this kind of procedure?!

Why are you installing the nvidia card “the hard way”?

> I’m new intro using linux OS but maybe openSuse is not the best for
> start with my pc…I dunno it’s about a week and I’ve not yet install it
> properly…

Some links:

NVIDIA
NVIDIA the hard
way
NVIDIA
drivers
Nvidia video cards
NVIDIA
troubleshooting


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

GO to Yast software management type kernel in the search find the kernel development package and install.

BTW if you add the Nvidia repo you can simply install via Yast which is less trouble in the long run since installing manually means you need to reinstall on any change of kernel. Where as a yast install will autocratically do it.

In this case you should install the package “kernel-default-devel”.

And better do a system update first:

sudo zypper up

You still have the kernel included in standard 12.3. There have been a lot of updates since then, some also affecting the usage of the nvidia driver.