LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2015, 08:25 PM   #1
JoeTod
LQ Newbie
 
Registered: May 2015
Posts: 2

Rep: Reputation: Disabled
Need Kernel header file


Hi folks,

I'm trying to install the drivers for my "legacy" nvidia graphics card.
I've downloaded the file from nvidia's website to install the driver, but during the process I get this message...

Kernel header file ' /lib/modules/3.13.0-37-generic/build/include/linux/version.h ' does not exist.

The most likely reason is the kernel source files in ' /lib/modules/3.13.0-37-generic/build ' have not been configured.

Anyone know how to configure this file? I've been working on this for a few days now...it's getting old!

Thanks for your help.

Joe
 
Old 05-22-2015, 08:31 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Not all distros install kernel headers by default; in my experience, most desktop-oriented distros do not. Depending on your distro, you may need to open your package manager (possibly called "Software Center") and find and install the appropriate kernel headers for your kernel.

You can find your kernel version by running the command

Code:
 uname -r
in a terminal.

If you have further questions, please provide the name and version of your distro. The more information you provide, the easier it is for others to help you.
 
Old 05-22-2015, 08:38 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
The "version.h" header file in include/linux/ was deprecated and removed quite some time ago. It isn't going to reappear on a system with a recent kernel, no matter what you do. Makes sense that an older driver might be looking for it, though.

You could try creating an empty dummy file:
Code:
touch /lib/modules/3.13.0-37-generic/build/include/linux/version.h
 
  


Reply



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
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 03:57 AM
[SOLVED] Kernel Compilation ( Header file not found) ravishekhar.82 Fedora 2 02-24-2010 06:33 AM
fc3: kernel header file install pcandpc Linux - General 1 03-25-2006 05:01 PM
Including the header file of a module in kernel code omkarlagu Linux - Newbie 0 02-05-2006 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration