Unable to install NVIDIA drivers due to missing version.h
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Unable to install NVIDIA drivers due to missing version.h
Hi all, I'm having problems trying to install the NVIDIA graphics drivers. I am running Slack 11.0 with my own compiled kernel, version 2.6.20.3. The error message when I run the installer is as follows:
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.
My kernel source is in /usr/src/linux-2.6.20.3 (/usr/src/linux is a symlink pointing to that) and per the README in the kernel tarball, I set an output directory when running make to build the kernel modules. This directory is ~/kernel and /lib/modules/2.6.20.3/build is a symlink to there (this was set up automatically).
I tried to point the installer to my source code with the --kernel-source-path option, but that didn't help. I've searched both here and nvnews.net's forum and haven't found anything that can help.
It shouldn't really matter, but video card info is as follows:
What driver version are you trying to install? I think the most recent ones (current and 2 legacy) have this fix. Currently I'm using 9631, and I'm pretty sure it worked without that error.
The version.h file was removed from the kernel tree a few releases back, so the third party modules are taking a while to get this fixed.
run 'make prepare' on the kernel source and try again. Also, make sure all the symlinks are right.
Running "make prepare" seemed to do it (though I had to recompile my kernel again to remove some things!).
Quote:
Originally Posted by drumz
What driver version are you trying to install? I think the most recent ones (current and 2 legacy) have this fix. Currently I'm using 9631, and I'm pretty sure it worked without that error.
The version.h file was removed from the kernel tree a few releases back, so the third party modules are taking a while to get this fixed.
I was trying to install the latest version of the drivers, 1.0-9755. As above, I've got them installed now and have edited my xorg.conf.
New problem though: the screen just goes black when I try to start X again. Lines from my xorg.conf:
(EE) NVIDIA(0): Error recovery failed.
(EE) NVIDIA(0): *** Aborting ***
(II) NVIDIA(0): Setting mode "1024x768"
(WW) NVIDIA(0): The NVIDIA X driver has encountered too many errors. Falling
(WW) NVIDIA(0): back to legacy PCI mode.
There aren't any error messages above or below or above that in my log (well, there's a "Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!" at the end, but that's it). The entire log can be found here.
That's odd. It may be a problem with the drivers themselves. Two things you could do:
1) run 'xorgsetup', and it will detect everything right and likely use the 'nv' driver. After that, go in the new 'xorg.conf' and change 'nv' to 'nvidia'.
2) try some other driver versions. I don't like the proprietary nvidia drivers because they are so messed up. You never know if it's gonna work or not.
That link's broken (but easily fixed). No, I haven't. I can't use the second option anyway because I'm running Slack 11, rather than current so X is set up differently (i.e. /usr/lib/xorg doesn't exist).
Quote:
Originally Posted by H_TeXMeX_H
That's odd. It may be a problem with the drivers themselves. Two things you could do:
1) run 'xorgsetup', and it will detect everything right and likely use the 'nv' driver. After that, go in the new 'xorg.conf' and change 'nv' to 'nvidia'.
2) try some other driver versions. I don't like the proprietary nvidia drivers because they are so messed up. You never know if it's gonna work or not.
I'll try those a bit later. I usually don't bother installing the NVIDIA drivers, but I've read that installing them may help in making TV watching smoother.
This is turning out to be a pain. I generated a new xorg.conf using xorgsetup but it appears that my nvidia.ko is missing :/. I did have to recompile my kernel earlier for something, but it was for something unrelated. When I tried to reinstall the driver again, I had errors. I might just give up :/. All I really want to be able to do is watch TV smoothly!
Then use the 'nv' driver. It should work just fine for just watching tv. It gives you 2D acceleration, so unless you're running 3D games, the 'nv' driver is the way to go. It's better (more stable) anyway.
If you used 'xorgsetup' it should have chosen the best driver options anyway ... this would be 'nv' driver.
Last edited by H_TeXMeX_H; 04-15-2007 at 04:34 PM.
Indeed, xorgsetup did choose nv. I'll have to change the config it made though, as it wasn't working. I don't think I've ever had success with nv, but I'll try again .
That link's broken (but easily fixed). No, I haven't. I can't use the second option anyway because I'm running Slack 11, rather than current so X is set up differently (i.e. /usr/lib/xorg doesn't exist).
I am also running Slackware-current and I have a /usr/lib/xorg directory. There is a single subdirectory ./modules and this is where my libnvidia-wfb.so.1.0.9755 library was placed after I compiled and installed nVidia 1.0-9755. Also in this subdirectory is libwfb.so which is a symlink to this library.
Other things to check are:
That symlinks /lib/modules/`uname -r`/build and /lib/modules/`uname -r`/source point to the kernel source for your kernel.
That you do have the kernel headers and kernel source for your kernel installed and that the symlink /usr/src/linux is correct.
I am also running Slackware-current and I have a /usr/lib/xorg directory.
I'm not running current. I've given up on the NVIDIA drivers now.
As for using nv, I'm having problems getting that to work. The default config that xorgsetup generated didn't work and I've edited it with some of the things from my working config (which uses the vesa driver, though) like modes. When I start X, well, it's not displaying properly. I get a mostly black screen with some multi-coloured "patches" at the bottom. Config is here.
I have decided to give up on getting the nv/NVIDIA drivers to work. The reason being is that watching TV is quite smooth now, so I'd rather leave my setup as it is. I don't know why it was all jerky before. Having said that, thanks everyone for trying to help .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.