LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-01-2003, 05:10 AM   #1
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Rep: Reputation: 30
How to install kernel headers for redhat 9.0?


Yo!

I am trying to install nvidia drivers, but it asks for kernel headers...

How to install kernel headers for redhat 9.0?

1. I do not have net at home.

2. I do not know what headers even are...

3. Please help...

I have installed such a file which is kernel-2.4.20-18.9.src.rpm, like this:

$ rpm -Uvh kernel-2.4.20-18.9.src.rpm

I have not found a file called "kernel headers" so I presume that this file "kernel-2.4.20-18.9.src.rpm" contains them? Am I right?

So...it does not work yet! What else I need to do? Add symlinks? Or some other settings? Please advice.

I hope I do not need to compile kernel...

-Tommi
 
Old 07-01-2003, 08:16 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Re: How to install kernel headers for redhat 9.0?

Quote:
Originally posted by Tommi
Yo!

I am trying to install nvidia drivers, but it asks for kernel headers...

How to install kernel headers for redhat 9.0?

1. I do not have net at home.

2. I do not know what headers even are...

3. Please help...

I have installed such a file which is kernel-2.4.20-18.9.src.rpm, like this:

$ rpm -Uvh kernel-2.4.20-18.9.src.rpm

[snip]

-Tommi
You don't have to re-compile, you just need to install the kernel sources. I know, I know, you thought you did that, but you need to get hold of the rpm that looks like this:

kernel-source-2.4.20-18.9.i386.rpm or
kernel-source-2.4.20-18.9.i586.rpm or
kernel-source-2.4.20-18.9.i686.rpm

depending on your architecture.

The rpm you installed is the rpm used to create binary distributions of the kernel. Yes, the sources are there, but not in the right directories. Find one of the above kernel source rpm's and do the usual install. Nvidia will then be happy.

Cheers--
Charles
 
Old 07-01-2003, 08:35 AM   #3
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Yes...Now I understand.

well...there was no readymade rpm's for i686 so I need to use i386 release...but I think it does not matter, doesn't it?

Maybe I need to uninstall that file which I installed...?

Or maybe it is in some folder as turned rpm, now?

maybe I need to check the i386 folder...


-Tommi

Last edited by Tommi; 07-01-2003 at 08:40 AM.
 
Old 07-01-2003, 06:43 PM   #4
JayCnrs
Member
 
Registered: Mar 2003
Location: Winnipeg
Distribution: Suse 9.3 Pro
Posts: 404

Rep: Reputation: 30
No the source comes only as i386. You should have the right files installed now.
 
Old 07-02-2003, 02:30 AM   #5
nakkaya
Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
and kernel header are in a separate file in redhat it is
glibc-kernheaders
Header files for the Linux kernel for use by glibc
 
Old 07-02-2003, 08:15 AM   #6
Tommi
Member
 
Registered: Apr 2003
Posts: 185

Original Poster
Rep: Reputation: 30
Many thanks, cnjohnson !!!

It works!!! I just had the wrong file!!!

the magic word was "kernel-source-2.4.20-18.9.i386.rpm"

And it was as easy as it has always been.

-Tommi
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 10:17 AM
install script can not find kernel-headers abtimoteo Linux - Laptop and Netbook 1 05-01-2005 04:29 AM
Nvidia asking for kernel headers...? Redhat 9 Zkorpio Linux - Newbie 6 12-14-2003 05:38 PM
nVidia Driver won't install because Kernel Headers are missing...Whats that me then? Stevetgn Linux - Newbie 3 08-24-2003 09:27 PM
How do I install kernel headers jsurgeson Linux - Newbie 4 03-27-2002 06:01 AM


All times are GMT -5. The time now is 02:27 AM.

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