[CentOS] how can I get the kernel source codes of CentOS5.2

Tue Aug 26 12:14:11 UTC 2008
Ian jonhson <jonhson.ian at gmail.com>

I have downloaded the src.rpm according the wiki instructions.
however, when I executed

$ rpm -i kernel-2.6.18-92.1.10.el5.src.rpm

I got a lot of warnings and after the following command:

$ rpmbuild -bp --target=`uname -m` kernel-2.6.spec 2> prep-err.log |
tee prep-out.log

No files are created in BUILD directory. The prep-err.log said:

error: Failed build dependencies:
        unifdef is needed by kernel-2.6.18-92.1.10.el5.x86_64

My hardware is a 64bit machine. Are there something different in kernel version
32 and 64? or, something I miss?


Thanks again,

Ian


On Mon, Aug 25, 2008 at 8:39 PM, Akemi Yagi <amyagi at gmail.com> wrote:
> On Mon, Aug 25, 2008 at 5:14 AM, Ian jonhson <jonhson.ian at gmail.com> wrote:
>> Hi,
>>
>> My jobs need to recompile the kernel codes, but I don't know
>> how to yum the kernel source codes.
>>
>> Any help?
>
> First look in http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
>
> and then http://wiki.centos.org/HowTos/Custom_Kernel
>
> Akemi
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>