Compile kernel-2.6.32-431.3.1.el6.i686

Latest response

Hello!

Question:

I have the latest Red Hat workstation installed, v6.5.
When I attempt to compile the kernel:

rpmbuild -bp --target=i686 /root/rpmbuild/SPECS/kernel.spec

I get the following error:

error: Failed build dependencies:
asciidoc is needed by kernel-2.6.32-431.3.1.el6.i686
newt-devel is needed by kernel-2.6.32-431.3.1.el6.i686

About newt-devel, when I do yum install newt-devel, I get the following error:

No package newt-devel available.

Do you know if a version of newt-devel exist for Red Hat workstation v 6.5, kernel-2.6.32-431.3.1.el6.i686?

Responses

You did not explain why you need to compile your own kernel. :) But anyway...

These CentOS wiki articles should help you get started:

http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
http://wiki.centos.org/HowTos/Custom_Kernel

Forgot to add -- you need to add the optional channel.

Thank you very much Akemi, the problem was the optional channel, which I did not have enabled.
The command: yum-config-manager --enable rhel-6-workstation-optional-rpms enabled the channel, and now I can download the packages I need.
Thank you very much again!

Glad to hear you got it working.

But there is another reason why I referenced the wiki. You seem to be building as root. While this may not sound important, it is generally advised against building packages as root. The wiki article explains how to set up a build environment as a non-root user.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.