Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-23-2012, 03:31 PM   #1
Registered: Apr 2009
Posts: 31

Rep: Reputation: 0
nvidia driver version.h does not exist.

Hi all.

I hope this is the right place to post this as its a sw issue, im running debian wheezy distro, and compiled a custom 3.7.1 kernel, properly configured for my hardware, my pc is an old one but does the job, i got all the hardware up and running but im having problems to install my nvidia drivers my gpu chip is an nvidia GeForce 6150SE which is known that it doesnt work with nouveau driver so i need to install the official nvidia legacy drivers, ive installed the driver in previous kernel updates without problems heres the procedure and the logs.

1.-when i run #NVIDIA*.run i get:
ERROR: The kernel header file '/usr/src/linux-headers-3.7.1/include/linux/version.h' does not exist. The most likely reason for this is that the kernel source files in '/usr/linux-headers-3.7-1' have not been configured.
2.-in my research quest ive found a few guys that had similar problems while installing nvidia drivers, some of them solve them installing their kernels source and kernel headers so i did this:
#/usr/src/linux-3.7.1/make-kpkg clean 
#/usr/src/linux-3.7.1/make-kpkg kernel_source kernel_headers
#/usr/src/dpkg -i linux-headers-*.deb
#/usr/src/dpkg -i linux-source*.deb

#dpkg -l | grep linux-headers
ii   linux-headers-3.2.0-3-amd64   
ii   linux-headers-3.2.0-3-common
ii   linux-headers-3.7.1
then i tried to run the script pointing it to where the sources are
#sh NVIDIA*.run --kernel-source-path /usr/src/linux-headers-3.7.1
no luck same error.

after succesfully installed the kernels version headers the same errors pop ups in the nvidia script, apparently in new kernel releases file "version.h" is generated in another location:
so i made a symbolink link to where the nvidia script searches version.h

#ln /usr/src/linux-3.7.1/include/generated/uapi/linux/version.h /usr/src/linux-3.7.1/include/linux
ran the script again and now i recieve a different error:
Error: If you are using a Linux 2.4 kernel, please make sure
you either have configurd kernel sources matching your kernel or the correct set of kernel headers installed in your system
after that error i rm'ed the symbolink link in linux headers

this is the /var/log/nvidia-installer.log:
nvidia-installer command line:

Using: nvidia-installer ncurses user interface
-> Licence Accepted.
-> Installing NVIDIA driver version 304.64.
-> There appears to be already a driver installed on your system (version: 304.64). As part od installinf this driver (version 304.64)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-headers-3.7.1' as specified by the '--kernel-source-path' command line option.
ERROR: The kernel header file '/usr/src/linux-headers-3.7.1/include linux/version.h' does not exist, most likely reason fot that is that the kernekl source files in '/usr/src/linux-headers-3.7.1' have not been configured.
Note: Graphics hardware is running fine in another kernel, thats why it detects another nvidia installation.

Im out of ideas, some help would be appreciated.

thanks in advance.
Old 12-23-2012, 04:21 PM   #2
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,137
Blog Entries: 2

Rep: Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840Reputation: 4840
The Legacy driver has to be patched to run with the 3.7 kernel.
1 members found this post helpful.
Old 12-23-2012, 04:53 PM   #3
Registered: Apr 2009
Posts: 31

Original Poster
Rep: Reputation: 0

Originally Posted by TobiSGD View Post
The Legacy driver has to be patched to run with the 3.7 kernel.
Problem solved with the solution provided.

Thank you very much for your help!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA kernel module version is different from NVIDIA driver lalik Linux - Newbie 2 09-16-2010 03:32 PM
Exist a NVIDIA RIVA TNT2 Model 64 driver for SuSE 10.1??? julian.osorio Linux - Hardware 1 11-23-2006 12:21 AM
Which version of Nvidia driver is installed. itsjustme Linux - Software 3 10-11-2006 04:08 AM
Installing NVIDIA driver error with the kernel header does not exist io13 Linux - Software 10 07-20-2006 06:34 AM
How do I check which nvidia driver version I am using? jdblick SUSE / openSUSE 8 03-08-2005 11:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration