How to download kernel source?

tbote

Joined
Feb 17, 2009
Messages
98
Likes
0
Points
6
#1
Hi

I've just download Elastix 1.5.2-2 but need to recompile for use Openbox B400P. I need the kernel source but don't know how to download it (i'm linux newbie).

I've try yum install kernel-devel, that's ok, but yum install Kernel-headers does not work.

I've read this http://www.cyberciti.biz/faq/rhel5-inst ... urce-code/ but when I try to compile mISDN, it says that I dont' have the kernel source.

Is there any guide to download the source? Just the CentOS kernel.

Regards
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#2

tbote

Joined
Feb 17, 2009
Messages
98
Likes
0
Points
6
#3
rafael said:
Here is the the package you want to use:
http://repo.elastix.org/elastix/1/base/ ... 5.i386.rpm

It should be installable using yum as it is in the Elastix repos.

Regards,

Rafael
yum install kernel-headers reports:

Requested dep: kernel-headers is provided by installed package
Nothing to do

but when I try to recompile dahdi it ask me for the kernel sources.

:huh:
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4
I was always under the impression that dahdi compiled with just the kernel-headers and kernel-devel rpms though.

If not, you could google for the output of:

echo "kernel-`uname -r`.src.rpm"

or

rpm -Uhv ftp://ftp.pbone.net/mirror/ftp.centos.o ... MS/kernel-`uname -r`.src.rpm

if you like one liners, this will download and install.
 

tbote

Joined
Feb 17, 2009
Messages
98
Likes
0
Points
6
#5
Solved.

Really don't know how, just reinstalled Elastix, try again to recompile Dahdi, and now works without errors :blink:
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top