LinuxAnswers - the LQ Linux tutorial section.
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 01-14-2004, 01:16 PM   #1
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Rep: Reputation: 30
How do I get "Kernel Header" files so I can install nVidia drivers

I'm running Mandrake 9.2 and I'm struggling installing the nVidia drivers for my Geforce 5900FX. I run the downloaded driver without X running by using the "sh NVIDIA-Linux-x86. etc etc... and it tells me I need the "Kernel Header files" where do I get them from, how do I install them and what are they for???

Many thanks in advance


Old 01-14-2004, 01:40 PM   #2
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
You didn't mention, what kernel version, you are running. I know you have a kernel installed, and you will need sources for THAT version, not for some other version.
To find out, what version your kernel is, run
su -c 'grep kernel\ version /var/log/kernel/info |cut -d: -f4|tail -n 1'
It will ask you for your root password, then find any line in /etc/log/kernel/info that has the world kernel version in it. Then print the part from the 4th to the 5th of last of theese lines.
Then go to and download the sources for that version.
unpak them using:
cd /usr/src
tar xjf kernel-souce-files
Now the Nvida drivers, should find the sources, and compile with out problems.
Kernel sources are those used to bild the kernel. It boots at startup, and handles all hardware actions - such as reading/writing to a disk such. That is way I was sure, You already had a kernel. People says they install Linux, put technicly the kernel is linux.
It is needed to do such a simple ting as executing a program. With the kernel, you have nothing
Old 01-14-2004, 01:45 PM   #3
Registered: Jun 2003
Distribution: SuSE10, Mepis,
Posts: 230

Original Poster
Rep: Reputation: 30
Thats great thanks lone_nut. I'll try that later on tonight

Thanx again

Old 01-14-2004, 03:14 PM   #4
Registered: Sep 2003
Location: Port Townsend, WA
Posts: 30

Rep: Reputation: 15
If you're using Mandrake, there should be an RPM file with the kernel source on one of the CDs. I think typing urpmi kernel-source would work (maybe it's urpmi install kernel-source).
Old 01-14-2004, 05:57 PM   #5
LQ Newbie
Registered: Jan 2004
Posts: 3

Rep: Reputation: 0
I had the same problem.."Unable to find kernel header"

I tried what is suggested here..

Have just finished loading the new drivers and it works perfectly..
You can see what I had posted here...

Hope this helps...


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 driver install problem."kernel source "needed ztdep Linux - Hardware 4 07-21-2005 01:50 AM
VMware & "directory of C header files" pacranch Amigo 12 05-14-2005 03:39 PM
"invalid Elf header" after kernel upgrade Goo Slackware 7 10-09-2004 08:32 AM
"Cannot find header source files" when trying to install Nvidia 6111 drivers naddad Linux - Newbie 3 08-31-2004 12:42 PM
header files and nvidia drivers Zoko Linux - Software 5 05-29-2004 06:39 PM

All times are GMT -5. The time now is 04: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