LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-01-2006, 08:31 AM   #1
coolguy_iiit
Member
 
Registered: Aug 2004
Posts: 51

Rep: Reputation: 15
NVIDIA driver installation


Hi,
Please answer the questions
why does nvidia driver needs kernel headers?
what are kernel headers?
In windows nvidia driver installation doesnt ask for anything.why it asks for kernel headers in linux?
I tried to install nvidia drivers using livna also but no use.

Thanks
CoolGuy.
 
Old 08-01-2006, 10:01 AM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
the kernel headers are required for the compilation of third-party programs so that they'll be in accordance with code of your current kernel. the kernel headers are almost the same as the files you'll see in /usr/src/linux-2.6.12.1/include.

however only stable headers must be installed. you can get stable headers from your distro's site by searching for a package named 'linux-headers' or 'kernel-headers'. you might also find the headers in your installation cd.
 
Old 08-01-2006, 10:19 AM   #3
coolguy_iiit
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
while installing nvidia drivers i get a message that there are no precompiled kernel headers.how to install kernel headers?
 
Old 08-01-2006, 10:29 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
you must first download the package. also do not clean-up the compiled files in /usr/src/linux-2.6.12.1 before installing nvidia.

btw what distro are you using?
 
Old 08-01-2006, 10:54 AM   #5
coolguy_iiit
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
i am using fc4
 
Old 08-01-2006, 11:16 AM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
perhaps you already have your kernel's sources. just try to do the install.

before installing the nvidia driver, you must first compile and install your kernel. remember not to clean the kernel's sources. after compiling the kernel, run the nvidia package with the argument
Code:
-k '2.6.12.1'
in it.

you can also read the domentation of fc4 here: http://fedoranews.org/mediawiki/inde...anually_on_FC4
 
Old 08-01-2006, 11:34 AM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Fedora doesn't ship with the kernel-source RPM. You must install it separately. BTW, you may only need to install kernel headers package (kernel-devel RPM). This can be found on CD4, the DVD or online. If you have updated your kernel (using yum or up2date), then use yum to install the package.
Code:
# yum install kernel-devel
The default kernel source can be found through any Fedora mirror. This one is my favorite, ftp://mirrors.playboy.com/fedora/.

Find out which kernel version you have.
Code:
# uname -r
2.6.11-1.1369_FC4
Select the source from the mirror the matches the uname output.
Code:
kernel-2.6.11-1.1369_FC4.src.rpm 03-Jun-2005 13:32  41M
Install the package.
Code:
# rpm -ivh kernel-2.6.11-1.1369_FC4.src.rpm
   1:kernel                 ########################################### [100%]
Set it up.
Code:
# rpmbuild -bp --target=noarch  /usr/src/redhat/SPECS/kernel-2.6.spec
The source files will be properly located in '/usr/src/redhat/BUILD/kernel-2.6.11/'. Note this is an example and your kernel version number may not be the same!!! If you don't grab the correct headers, your subsequent nVidia driver installation won't work.
 
  


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 driver installation woopud Slackware 4 10-01-2005 10:28 AM
Trouble with new nVidia driver installation...no nvidia logo and KDE no start up mdb Linux - Software 8 08-18-2004 10:45 AM
Nvidia driver installation help... visualblind Linux - Software 8 08-07-2004 03:34 PM
nvidia driver installation simonwindt Debian 11 11-04-2003 06:05 AM
NVIDIA driver installation Dave Johnston Linux - General 2 10-31-2001 01:28 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration