LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-02-2008, 04:45 PM   #1
benderan
LQ Newbie
 
Registered: Sep 2008
Location: Boulder, CO
Distribution: Redhat EL5, Scientific Linux, Fedora
Posts: 21

Rep: Reputation: 15
kernel-source package


I recently installed Redhat Enterprise Linux 5 on a machine. I've been attempting to install software for a GPIB card, but ran into the error message that

"Kernel source does not appear to be installed for the 2.6.18-92.el5 kernel. Installation of the kernel-source package for kernel 2.6.18-92.el5 is required to continue this installation"

Can someone please explain this error message to me? I assume that I have installed the kernel (in the installation process)? Is there a way to fix this without re-installing?
 
Old 10-02-2008, 04:51 PM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
The kernel has been installed (you wouldn't be able to run Redhat without it). kernel-source is the source code for the kernel. Some programs/drivers require it as they need to use it to create hooks into your currently running kernel. Install the kernel-source package and that error message will disappear.
 
Old 10-02-2008, 04:51 PM   #3
blackice666
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Hello!

First try to download the kernel: 2.6.18-92.el5.src.rpm

and than run

Code:
rpm -Uvh kernel-2.6.18-92.el5.src.rpm
 
Old 10-02-2008, 04:56 PM   #4
benderan
LQ Newbie
 
Registered: Sep 2008
Location: Boulder, CO
Distribution: Redhat EL5, Scientific Linux, Fedora
Posts: 21

Original Poster
Rep: Reputation: 15
Sorry to be ignorant, but the kernel-source package is not showing up under my package manager. Where can I get the rpm from?
 
Old 10-02-2008, 05:01 PM   #5
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
It'll be named something like kernel-source-2.6.18-92.el5.

If you can't find a .rpm using your package manager, a good site to use is http://rpmfind.net/
 
Old 10-02-2008, 05:04 PM   #6
blackice666
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Maybe you can try this link:

Code:
http://oss.oracle.com/el5/SRPMS-updates/kernel-2.6.18-92.el5.src.rpm
 
Old 10-02-2008, 05:09 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Any package ending in .src.rpm is not installable. This is an rpm source file - you use it to create an rpm.

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source tells you how to get the package you need. You have to get and then build the .src.rpm file.
 
Old 10-02-2008, 06:48 PM   #8
benderan
LQ Newbie
 
Registered: Sep 2008
Location: Boulder, CO
Distribution: Redhat EL5, Scientific Linux, Fedora
Posts: 21

Original Poster
Rep: Reputation: 15
So it seems that I now have the source installed (/usr/src/kernels/2.6.18-92.1.13-el5-i686/) by installing the kernel-devel & kernel-header packages (a suggestion from an IT friend). Unfortunately, when I'm installing, I'm still receiving the same error message. Is the kernel-devel package really the source needed? Also, I don't know a lot about kernel configuring, can someone point me to a good reference?
 
Old 10-08-2008, 07:06 PM   #9
benderan
LQ Newbie
 
Registered: Sep 2008
Location: Boulder, CO
Distribution: Redhat EL5, Scientific Linux, Fedora
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks XavierP, I think it was your suggestion in the end that worked!
 
  


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
binary kernel package == source package ? narc Ubuntu 4 07-29-2007 10:28 AM
kernel-source package Agorex Debian 1 10-10-2006 02:11 PM
new kernel compiled successfully, but the kernel-source package is the same old? luqman Red Hat 2 03-03-2005 09:41 AM
kernel-source package houston1981 DamnSmallLinux 0 12-01-2004 05:50 AM
what is this kernel source package? vrdhananjay Linux - Newbie 3 09-22-2004 01:37 AM


All times are GMT -5. The time now is 01:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration