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

Advertisement

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.

πŸ₯Ί Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🀠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

12 comments… add one
  • Matteo Dec 16, 2015 @ 12:15

    Also with centos 6.7 and 6 year after you trick Andrew work! Thanks a lot!

  • Stiv Ostenberg Feb 14, 2017 @ 18:54

    Even this fix did not appear to work for me on Centos 7. Finally, I tried the command “vmware-install.pl -default -f” and it installed. Not sure why that made a difference, wasnt expecting it to.

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.