LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 01-13-2008, 10:26 PM   #1
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Rep: Reputation: 15
Installing kernel header files for old kernel


I am using the 2.6.10 version of the kernel. Is there a good way to install the kernel headers without doing a manual copy? Later kernels have the make headers_install option. I know I can download an RPM, but I was hoping that someone made a script or something .

Thanks
 
Old 01-13-2008, 11:11 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I take it you're not doing an LFS (Linux From Scratch) build? There are instructions on downloading kernel and kernel header sources as well as installing them in the LFS docs.

If you're modifying another distribution and you're sure you need to modify the headers (searching here will reveal plenty of discussion on when this is really necessary), have a look in a later kernel at what the headers_install target does. As far as I know, most distros ship the headers that libc was compiled with and anything else you'll have to do manually.
 
Old 01-13-2008, 11:31 PM   #3
skibud2
Member
 
Registered: Sep 2003
Location: Waltham MA
Distribution: Mandriva 2007 w/ KDE
Posts: 87

Original Poster
Rep: Reputation: 15
I was doing a CLFS build for an older kernel (different than the one in the instructions). I was trying to build glibc with older kernel headers. It turns out after reading the glibc documents, they recommend build glibc with the latest kernel headers even if you are running an older kernel (kind of interesting). Anyway, I am all set now.
 
  


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
Where are kernel header files? sheintze Debian 6 03-17-2007 04:50 AM
Kernel header files tristanlee85 Linux - Software 4 07-09-2006 04:42 PM
What!? Kernel header files too old? LinuxLuvr Linux From Scratch 2 06-20-2005 08:43 AM
installing a VPN client - needs kernel header files mehlkelm Linux - Software 1 06-11-2003 03:01 AM
where are the kernel header files? vance Linux - Software 5 03-05-2002 01:51 AM


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