LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-23-2012, 04:31 PM   #1
yozh
LQ Newbie
 
Registered: Apr 2009
Posts: 11

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:
Code:
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:
Code:
#/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
Code:
#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:
Code:
#/usr/src/linux-3.7.1/include/generated/uapi/version.h
so i made a symbolink link to where the nvidia script searches version.h

Code:
#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:
Code:
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:
Code:
nvidia-installer command line:
./nvidia-installer
--kernel-source-path
/ust/src/linux-headers-3.7.1

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, 05:21 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,623
Blog Entries: 2

Rep: Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078Reputation: 4078
The Legacy driver has to be patched to run with the 3.7 kernel.
http://slackblogs.blogspot.de/2012/1...ation-and.html
 
1 members found this post helpful.
Old 12-23-2012, 05:53 PM   #3
yozh
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Solved!

Quote:
Originally Posted by TobiSGD View Post
The Legacy driver has to be patched to run with the 3.7 kernel.
http://slackblogs.blogspot.de/2012/1...ation-and.html
Problem solved with the solution provided.

Thank you very much for your help!
 
  


Reply


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 04:32 PM
Exist a NVIDIA RIVA TNT2 Model 64 driver for SuSE 10.1??? julian.osorio Linux - Hardware 1 11-23-2006 01:21 AM
Which version of Nvidia driver is installed. itsjustme Linux - Software 3 10-11-2006 05:08 AM
Installing NVIDIA driver error with the kernel header does not exist io13 Linux - Software 10 07-20-2006 07:34 AM
How do I check which nvidia driver version I am using? jdblick Suse/Novell 8 03-09-2005 12:55 AM


All times are GMT -5. The time now is 12:14 PM.

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