Question:
I am attempting to install the VMWare player in Fedora 19. I am running into the problem that multiple users have had where VMware player cannot find the kernel headers. I have installed the kernel-headersand kernel-develpackages through yumand the file that appears in /usr/src/kernelsis:
3.12.8- 200.fc19.x86_64
However, when I do uname -rmy Fedora kernel version is:
3.9.5- 301.fc19.x86_64
which is a different version. This seems to mean that when I point VMware player at the path of the kernels I get this error:
C header files matching your running kernel were not found.
Refer to your distribution
's documentation for installation instructions.
How can I install the correct Kernel and where should I be pointing VMware if its not /usr/src/kernels/ ?
Answer:
You can install the correct kernel header files like so:
$ sudo yum install "kernel-devel-uname-r == $(uname -r)"
Example
This command will always install the right version.
$ sudo yum install "kernel-devel-uname-r == $(uname -r)"
Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit
No package kernel-devel-uname-r == 3.12.6- 200.fc19.x86_64 available.
Error: Nothing to
do
Or you can search for them like this:
$ yum search "kernel-headers-uname-r == $(uname -r)" --disableexcludes=all
Loaded plugins: auto-update-debuginfo, changelog, langpacks, refresh-packagekit
Warning: No matches found for: kernel-headers-uname-r == 3.12.6- 200.fc19.x86_64
No matches found
However I’ve notice this issue as well where specific versions of headers are not present in the repositories. You might have to reach into Koji to find a particular version of a build.
- Information for build kernel-3.12.6-200.fc19
That page includes all the assets for that particular version of the Kernel.
Via: /questions/110682/yum-installs-kernel-devel-different-from-my-kernel-version