LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-23-2002, 08:03 PM   #1
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
Exclamation Kernel Headers??


I thought I knew the answer to this question, but I want to double check with everyone.

When I (or anyone) downloads a new kernel to compile, say from www.kernel.org ... that obviously contains the source code. Does this code also contain the kernel-headers?

I guess my question is, do I also need to download updated kernel headers in addition to the new kernel source code? If so, are those also located on www.kernel.org? I can't seem to find them if they are.

Maybe a brief explaination from one of you experts is all I need? Thanks!
 
Old 01-23-2002, 09:13 PM   #2
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
Not speaking the gospel but from what I've seen the source contains headers..I know my install cd kernel source had headers..Don't think it would compile if it didn't..
 
Old 01-24-2002, 05:31 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well, as it's source code the headers are naturally there as they are essential to compiling the kernel.
 
Old 01-24-2002, 05:42 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
It's the distributions that always split them into seperate RPM's. If you go to www.kernel.org you'll get the whole package headers and source code. The reason why they have got the headers seperate is because officially the libc libraries have been compiled against the kernel headers of the original kernel which came with your system. So it's best to leave those in /usr/src/linux especially since most distributions still have /usr/include/linux as a link to the include files in there. And when you compile a new kernel just make another directory with the version number and don't change the symbolic link.
The LFS book at www.linuxfromscratch.org explains this in more detail.

Last edited by Mik; 01-24-2002 at 05:48 AM.
 
  


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 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 09:17 AM
Difference between kernel-headers kernel-source twinkers Debian 2 06-18-2005 11:20 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
Kernel Headers for 2.6 devinWhalen Mandriva 7 04-23-2004 09:35 AM
kernel-headers warmongr Red Hat 6 03-19-2004 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:36 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
Open Source Consulting | Domain Registration