CentOS Linux install kernel headers to build vmware / 3rd party modules

by Vivek Gite on May 6, 2007 · 5 comments

Q. I’ve CentOS 5 installed under vmware. When I run following command:
vmware-config-tools.pl
or
vmware-config.pl

It asks about Linux kernel headers to build custom headers.

How do I fix this problem?

A. You don’t have development package for building kernel modules to match the kernel. It is required to build 3rd party modules such as vmware or graphics card drivers.

There is a package called kernel-devel. This package provides kernel headers and makefiles sufficient to build modules against the kernel package.

Login as the root, and use yum command to install the same:
# yum install kernel-devel

Now you should able to build kernel modules.

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 5 comments… read them below or add one }

1 ebin August 23, 2007

how to updte software in redhat enterprise5

Reply

2 ackros December 13, 2007

i too had this and installed via yum kernel-*

when i do the vmware config tools
this path is auto shown /lib/modules/2/6/23.1-42.fc8/build/include

yet it fails should i be changing this and if so what does the folder look likr or is called?

Reply

3 Andrew November 19, 2009

Old topic, but early hit on google that almost worked for me except I hit the same problem as ackros. I also did:
cd /lib/modules/2.6.18-164.el5
sudo rm source build
sudo ln -s ../../../usr/src/kernels/2.6.18-164.el5 build
sudo ln -s build source

and it worked. I think installing kernel-devel left me with broken hard links that the above steps fixed. This was on centos5.4

Reply

4 Eric January 27, 2010

Great post Andrew!! The install went perfectly for me with you steps.

Reply

5 Nevin February 8, 2012

Don’t worry I don’t think that RMS is rdieang my modest blog He have more interesting things to do

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 10 + 7 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: