Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-22-2015, 08:25 PM   #1
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's getting old!

Thanks for your help.

Old 05-22-2015, 08:31 PM   #2
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,486
Blog Entries: 16

Rep: Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207
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

 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: 2,458

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:
touch /lib/modules/3.13.0-37-generic/build/include/linux/version.h


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:01 PM.

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