VMWare can't find linux headers path

I'm using ubuntu 12.10 with the kernel 3.7.0-7 from xorg-edgers fresh X crack. Now when I try to launch wmware workstation it asks for linux header path like shown here. I tried all the solutions on that page but nothing works... It was working before I switched to the 3.7 kernel. Any idea what I can do to get it work?


Solution 1:

To make the original answer a little clearer for other folks:

In Ubuntu 13.04 (should work in 12.10 as well), with just the kernel headers installed, you can do this:

sudo ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/version.h

I have to do that every time I update the kernel right now.

Solution 2:

First thing to check is for the availability of a newer version of VMplayer or workstation to download. If the latest version does not work, then start looking at the error messages and try to add a link to fix the problem.

Looks like the version.h file got moved again, so adding a symlink is needed:

ln -s /usr/src/linux-3.7-rc6/include/generated/uapi/linux/version.h /usr/src/linux-3.7-rc6/include/linux/version.h

See the link http://rglinuxtech.com/2012/11/18/vmware-9-0-1-not-so-clever-after-all/ The headers have been a moving target since 3.2, and vmware does not keep up.