LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-13-2004, 01:10 PM   #1
X-GhoSt
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Rep: Reputation: 0
Installation of Kernel-headers


Hi

Does someone know how to install the kernel-headers from the RedHat 9 CD?? And if it is not possible from the CD, can it be downloaded somwhere??

Thx
 
Old 02-13-2004, 05:21 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,128

Rep: Reputation: 158Reputation: 158
You can install from the cd if they're included. If not, try searching redhat.com or www.rpmfind.net

But be sure to use the correct headers that matches your kernel your currently using, etc.
 
Old 02-14-2004, 02:08 AM   #3
X-GhoSt
LQ Newbie
 
Registered: Jan 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I found this file on the CD: glibc-kernheaders-2.4-8.10.i386.rpm
But the kernel I installed from this CD is 4.2.20-8 .... is this correct??
 
Old 02-14-2004, 04:59 AM   #4
imsajjadali
Member
 
Registered: Jan 2004
Location: Faisalabad-Pakistan
Distribution: Red Hat Linux 2.1 Advance Server
Posts: 102

Rep: Reputation: 15
You should installed kernel-headers-4.2.20-8.rpm
Please enter command rpm -qa | grep kernel
it will display all kernel rpm on your machine. check the kernel version from display list and then install kernel-header-version from cd drive...
let me know it this help. I have installed/updated kernel for linux advance server 2.1 more then 20 times......
 
Old 02-24-2004, 07:48 PM   #5
Tiyogi
Member
 
Registered: Nov 2003
Location: Hyde Park, Ny
Distribution: Ubunta
Posts: 117

Rep: Reputation: 15
Question

I also need to install a kernel header so that I can install a driver for Intel V92 ham modem.
The machine is Pentium II 300MHz Red Hat 8

I have done as suggested and run the following to find which kernel is load on the machine.

rpm -qa | grep kernel
kernel-pcmcia-cs-3.1.31-9
kernel-2.4.18-14

I have looked at the rpmnetfinder and have a few choice for RH8 but nothing for the kernal choice.
So do I download the rpm for RH8? If so which one ?

RPM/redhat/8.0/i386
RPM/redhat/updates/8.0/i386
RPM/redhat/updates/8.0/i586 Is this the one for Pentium II?
RPM/redhat/updates/8.0/i686

I really do not know how to instal a kernel header source, so can I get and explantion of how to do that?

If I can get the modem up and running,I will then feel like I starting to use linux.
 
Old 02-24-2004, 11:31 PM   #6
globeTrotter
Member
 
Registered: Feb 2004
Location: Townsville, Queensland, Oz
Distribution: Red Hat 9
Posts: 107

Rep: Reputation: 15
Hi all

as you can see, you do not have the kernel-source files on your system. So you'll have to either get them off the 3rd disk or download them. i've written a little how-to below which may be of assistance.

First you have to find your kernel version so as we can match up the right source code files (as you ahve already done). So type in:
$ uname -r <enter>

This should print on the screen the kernel version number. My system returned
kernel-2.4.20-6

Write this number down somewhere. Next you have to determine if you have the source files installed. Type in:
$ rpm -qa | fgrep kernel <enter>

This should give you amongst other things the following 2 lines:
kernel-source-2.4.20-6
kernel-2.4.20-6

Obviously the numbers should match your kernel, as in the previous section. Beware that some Red Hat 9 distributions come with the ‘kernel-2.4.20-8’. If the "kernel-source-2.4.20-6" is there it means that you don’t need the kernel source package as it’s already installed.

If the kernel-source-2.4.20-6 line isn’t there, it means you’re going to have to download, unpack and install it. You will need the following rpm:
"kernel-source-2.4.20-6.i386.rpm" (again ajust numbers to suit your version)

Which you might find on the 3rd cd if you have it, otherwise you can download it from
http://rpm.pbone.net/index.php3/stat....i386.rpm.html

This will probably take a while as its 35mb big. If you have access to a broadband connected computer from a friend or work, use it, otherwise it takes about 3 hours to download over a winModem. I didn’t have access to broadband so had to take the long road. The thing is, this file is crucial. Obviously change the 2.4.20-6 numbers if yours differ. Once downloaded this should give you a file called.
kernel-source-2.4.20-6.i386.rpm

Place this rpm into a new directory/folder in your home directory, then enter the directory and run the following command from the command line, as root:
# rpm –ivh kernel-source-2.4.20-6.i386.rpm <enter>

This may take a while before the command prompt is returned to you depending on your system. Basically it is creating two directories called linux-2.4.20-6 and linux-2.4 in your /usr/src directory. linux-2.4 is a symbolic link to linux-2.4.20-6. Don’t concern yourself with this fact just yet.
Once the command line is returned to you, type in
# cd /usr/src <enter>
# ls <enter>

Several directories should be printed back to the screen. The ones we are concerned with are.
linux-2.4.20-6
linux-2.4

You now need to make a symbolic link to a directory called "linux". Some older software packages need this apparently. To make this link, simply type in :
# ln -s linux-2.4.20-6 linux <enter>
Now type in:
# ls <enter>

You should now see the following files in the list
linux-2.4.20-6
linux-2.4
linux

Don’t be concerned if they appear as different colours, this just means they are links. What is relevant is that the files are there.

You should now have the appropriate kernel source files to build your driver. If the files are not there you have to go back and install the rpm file with the following command:
# rpm –ivh kernel-source-2.4.20-6.i386.rpm <enter>
You must make sure you are in the directory where the kernel-source-2.4.20-6.i386.rpm file is. Use the cd command (cd = change directory) to take you there. If you are not sure of the path, go to and enter the file in a browser from the desktop. The path is at the top. Use:
# cd /path/to/file <enter>.

If you use KDE desktop instead of GNOME this is easy, as you just open a browser, to the respective folder, then right click, press ‘open terminal here’ and run the command.

if you update your kernel down the track, also update the source file.
regards
GT
 
Old 05-04-2004, 09:42 AM   #7
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
Hi globeTrotter and guys,

i followed the steps to install the kernel source of 2.4.20-8 and 2.4.20-30.9.
And all of them work fine without any problems.
However, recently I am trying to install 2.4.20-31.9 and was facing some problems.

First after downloading i installed it
# rpm -ivh kernel-source-2.4.20-31.9.i386.rpm

Next, i went to /usr/src and found the the new directory 2.4.20-31.9.

But when I did a uname -r, and it show that its still using the old kernel!
rpm -qa | fgrep kernel show the past kernel installed and not 2.4.20-31.9!
Is there something that i am missing?

I am lost, what am I supposed to do now?
pls help

Thanks alot.

Last edited by DriveMeCrazy; 05-08-2004 at 04:13 AM.
 
Old 05-04-2004, 09:45 PM   #8
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
or can anyone advise?

here.... someone pls help or advise?!?

Last edited by DriveMeCrazy; 05-08-2004 at 04:16 AM.
 
Old 05-08-2004, 04:17 AM   #9
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
upz for this thread!!!
 
Old 05-08-2004, 08:24 AM   #10
jon1591
Member
 
Registered: Nov 2003
Location: NE England
Distribution: Slackware 9.1
Posts: 52

Rep: Reputation: 15
Now you can use your kernel source to compile your own kernel as described in this thread.

Good Luck

Jon
 
Old 05-08-2004, 11:06 PM   #11
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by jon1591
Now you can use your kernel source to compile your own kernel as described in this thread.

Good Luck

Jon
Now I am totally lost.
Why are there so many diff versions of installing the kernels?
RPMS, Source, Headers, blah blah blah.


What I did for my previous kernel was:
1) download kernel-source.x.x.x.rpm from rpmfind.net.
2) type "rpm -ivh kernel-source.x.x.x.rpm"
3) make a symbolic link

and everything works fine... I didn't even have to compile the kernel.

But right now I am stuck becos i can see that the kernel is not installed at all (only the kernel source).

What shows up in rpm -qa | grep kernel

kernel-2.4.20-30.9
kernel-2.4.20-8
kernel-source-2.4.20-30.9
kernel-source-2.4.20-31.9
kernel-2.4.20-8


I dun want to blindly go through the process without knowing anything.
Can some kind souls enlightened me?

Thanks in advance
 
Old 05-09-2004, 03:08 AM   #12
jon1591
Member
 
Registered: Nov 2003
Location: NE England
Distribution: Slackware 9.1
Posts: 52

Rep: Reputation: 15
Visit this site for instructions to compile a Red Hat kernel:

http://www.redhat.com/support/resour...ernel-upgrade/

Jon
 
Old 05-10-2004, 11:54 AM   #13
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
Quote:
Originally posted by jon1591
Visit this site for instructions to compile a Red Hat kernel:

http://www.redhat.com/support/resour...ernel-upgrade/

Jon
yep, Jon I download the kernel rpm and installed.
In addition to the kernel-source i download and installed earlier on.
Now everything works fine....
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Help please with installation of KLAMAAAV and kernel headers robertpratt Linux - Software 1 09-19-2005 02:41 AM
Kernel Source and Headers Installation (Mandrake 10.1) JyushinX Mandriva 9 03-14-2005 05:40 PM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 06:29 PM
KDE headers not found...check your installation jayakrishnan Linux - General 14 11-19-2002 07:46 AM


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