LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   RHEL 6.0 Kernel Build issue (https://www.linuxquestions.org/questions/red-hat-31/rhel-6-0-kernel-build-issue-849425/)

shibupthomas 12-10-2010 12:27 AM

RHEL 6.0 Kernel Build issue
 
I have installed RHEL 6.0(30 days evaluation version) on my PC.It is working fine.
But I tried to compile source code,it is getting failed:

The method I followed to compile RHEL6.0 kernel Source are:

1) I take the package kernel-devel-2.6.32-71.el6.x86_64.rpm and extract it into my directory
2) From 2.6.32-71.el6.x86_64 directory,I executed make command
I got the following make error
" SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2 "

please let me know how can I rectify this problem


Regards,
ShibuThomas

lazlow 12-10-2010 08:58 AM

You need to get the src(source) rpm and not the devel rpm. The devel rpm is used to compile stuff against/for the kernel, not to compile the kernel. The source rpm will look EXACTLY like the binary rpm except it will have src in the name.

Quote:

kernel-2.6.18-194.26.1.el5.src.rpm
vs

Quote:

kernel-2.6.18-194.26.1.el5.x86_64.rpm


All times are GMT -5. The time now is 03:52 PM.