LinuxQuestions.org
Review your favorite Linux distribution.
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 06-15-2002, 05:58 PM   #1
gusgorman
Member
 
Registered: Mar 2002
Location: uk
Distribution: slackware-9b, mandrake-8.1
Posts: 61

Rep: Reputation: 16
unpacking kernel source.


Its been a while since i built a new kernel, and after i unpacked the source to 2.4.18 and read the README file i got slightly confused. Just wondered if anyone could shed any light on this?

In the README file it sais this:

------------------
If you install the full sources, put the kernel tarball in a
directory where you have permissions (eg. your home directory) and
unpack it:

gzip -cd linux-2.4.XX.tar.gz | tar xvf -

Replace "XX" with the version number of the latest kernel.

Do NOT use the /usr/src/linux area! This area has a (usually
incomplete) set of kernel headers that are used by the library header
files. They should match the library, and not get messed up by
whatever the kernel-du-jour happens to be.
--------------------

my confusion is as follows:

1) Id always unpacked the kernel source into /usr/src/ , and then created a sym link called linux to whichever source tree was the current one i was using - and never had problems.

2) I thought the kernel-headers ( on mandrake and redhat ) were installed into /usr/include/linux/. Am i wrong about this? If i am not wrong, then what happens when you build a new kernel but don't change the headers in /usr/include/linux ?

i'd appreciate it if anyone can shed any light on this.

thanks.
 
Old 06-15-2002, 09:13 PM   #2
coder2000
LQ Newbie
 
Registered: Jun 2002
Distribution: Red Hat
Posts: 16

Rep: Reputation: 0
I think when you do

make install

it copies the headers and compiled libraries and such to the correct folder for your system.
 
Old 06-15-2002, 09:40 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
basically redhat has probably quit making a link named linux, they make on like /usr/src/linux-2.4

it's up to you to make /usr/src/linux

and /usr/src/linux should only be changed if you rebuild the libs.

the libs were built with the version you started with presumably. So if you change the kernel source there then you may have problems with them.

However building a kernel is not the same thing. you should build it in your home folder and then you can put it in /boot or / if your distro uses / and setup lilo.

you should not do anything to /usr/src/linux
 
Old 06-15-2002, 10:04 PM   #4
coder2000
LQ Newbie
 
Registered: Jun 2002
Distribution: Red Hat
Posts: 16

Rep: Reputation: 0
Another way to update your kernel fast without having to compile source is the Red Hat Network. You get one free account with each version you own. (or you can pay for as many as you want)
 
Old 06-15-2002, 10:41 PM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
also you can use as many as you want with one free account.

just change the entitlement to the system you want to update.

even if you just downloaded the software it is still free.
 
  


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
Debain kernel source or Linux kernel source? kushalkoolwal Debian 4 11-28-2005 01:56 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
difference between "pure" kernel source, and .deb packaged kernel source microsoft/linux Debian 1 06-19-2005 10:28 PM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM
unpacking / new kernel cloeser Linux - General 2 08-30-2003 09:38 AM

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

All times are GMT -5. The time now is 11:48 AM.

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