LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 01-07-2010, 10:40 PM   #1
shea1roh
Member
 
Registered: Jul 2003
Location: Grand Meadow MN
Distribution: Mandrake 2010.2 & Fedora 14
Posts: 99

Rep: Reputation: 17
Difference between 'kernel sources' & 'kernel-devel'


I have installed CentOS 5.4 & am trying to install VirtualBox on it. To install VirtualBox I run the command:

yum localinstall path/Virtualbox.rpm

It runs through the dependency check & says everything is fine. It installs the rpm & then says that compiling of the kernel module failed & that VirtualBox will not start until this is fixed, & that the most like cause is that the kernel sources are not installed.

I have installed the kernel-devel package & have the kernel source tree located at /usr/src/kernel/2.6....

Any idea what I am doing wrong? Thanks
 
Old 01-07-2010, 11:06 PM   #2
GoinEasy9
Member
 
Registered: Feb 2004
Location: Manorville, New York, USA
Distribution: siduction, openSUSE Tumbleweed
Posts: 379
Blog Entries: 1

Rep: Reputation: 47
Kernel-devel - This package provides kernel headers and makefiles sufficient to build modules against the kernel package. This is just a guess, but the last time I had a problem compiling kernel modules it was because I had the wrong kernel-devel package installed. I use Fedora and use a PAE kernel, but, I mistakenly installed the kernel-devel package instead of the kernel-PAE-devel package. If your on 32 bit I would check that first.
 
Old 01-07-2010, 11:41 PM   #3
shea1roh
Member
 
Registered: Jul 2003
Location: Grand Meadow MN
Distribution: Mandrake 2010.2 & Fedora 14
Posts: 99

Original Poster
Rep: Reputation: 17
Thanks for replying. I have been poking around & read the Makefile in the src tree for Virtualbox & it said that the default path for kernel sources was /usr/src/linux whereas my kernel src tree was /usr/src/kernels/2.6.18-164.9.1.el5 So I made a link /usr/src/linux pointing to /usr/src/kernels/2.6.18-164.9.1.el5 & tried running /etc/init.d/vboxdrv setup, which is what the messages about not finding the sources suggested. It tried to compile the module again & came up with a different error. So now I'll dig into that one. Thanks again.
 
Old 01-08-2010, 03:23 PM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Do you have kernel-headers installed as well? And run
Code:
rpm -qa kernel*
to see if you have correct versions. Also run
Code:
uname -r
to see what kernel is currently active, so see if you have kernel-devel and kernel-headers for that particular kernel version.

I installed VirtualBox rpm's on several CentOS boxes and I believe that is all you need.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install kernel-devel for older kernel cletcher Linux - Software 1 05-05-2008 01:03 PM
Can I remove old kernel sources after kernel upgrade(to 2.6.17.13) on Slackware 11? ErV Slackware 7 05-04-2007 12:06 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
2.4.22-26 kernel sources & ncurses-devel oomlout Mandriva 4 02-23-2004 10:33 AM
CAVEAT: /boot/kernel.h & how not to clobber your kernel sources (Conectiva, Red Hat) JCCyC LinuxQuestions.org Member Success Stories 0 08-07-2003 07:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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