Kernel error while trying to compile application

Solution Verified - Updated -

Issue

When trying compile an application I am getting error about missing library file:

# make
make -C /lib/modules/2.6.32-220.el6.x86_64/build SUBDIRS=`pwd`
make[1]: Entering directory `/usr/src/kernels/2.6.32-220.el6.x86_64'

  ERROR: Kernel configuration is invalid.
         include/linux/autoconf.h or include/config/auto.conf are missing.
# yum search kernel-devel
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
              : subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Warning: No matches found for: kernel-devel
No Matches found

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

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