What is the location of the directory of C header files that match your running kernel?

f10launch

Installing VMware Tools for Fedora

What Happened?

  • In VMware Fusion selected “Virtual Machine” –> “Install VMware Tools”
  • In a terminal navigate to folder with install file “/home/mike/Desktop/vmware-tools-distrib/”
  • Ran install with “./vmware-install.pl”
  • Accepted all default answers to prompts

Problem

Was prompted with:

What is the location of the directory of C header files that match your running

kernel? [/usr/src/linux/include]

</br></br>

The path “/usr/src/linux/include” is not an existing directory.

Fix

  • Get kernal package name by entering “uname -r” into your terminal.
  • The returned string is what you need to search for in google. Might look like “2.6.27.21-170.2.56.fc10.i686”
  • Download the C header package found in your google search and install. I found mine at “http://rpmfind.net/linux/rpm2html/search.php?query=kernel-devel”
  • Installed C header files ended up in “/usr/src/kernels/[package name]/include/” for me. “[package name]” is the name of the package you downloaded and installed.

Hopefully doing that works for you as well as it did for me. Would love to hear if this helped and let me know if you have any questions.