vmware linux headers not found for ubuntu 10.10?
Solution 1
After using Greg Suarez's suggestion, tou will need to patch a few things to get this to work. Taken (and corrected) from: http://blog.gnu-designs.com/solved-building-vmware-workstation-modules-on-linux-2-6-32
tar xvf /usr/lib/vmware/modules/source/vmnet.tar -C /tmp
tar xvf /usr/lib/vmware/modules/source/vmci.tar -C /tmp
cd /tmp
perl -pi -e 's,("vnetInt.h"),\1\n#include "compat_sched.h",' vmnet-only/vnetUserListener.c
perl -pi -e 's,("compat_page.h"),\1\n#include "compat_sched.h",' vmci-only/include/pgtbl.h
tar cvf /usr/lib/vmware/modules/source/vmnet.tar vmnet-only
tar cvf /usr/lib/vmware/modules/source/vmci.tar vmci-only
Now you should be able to continue on with installing vmplayer/workstation
Solution 2
Try the following:
sudo -s
cd /lib/modules/$(uname -r)/build/include/linux
ln -s ../generated/utsrelease.h
ln -s ../generated/autoconf.h
Solution 3
Same here. The ln stuff is great, but it seems that the vmware modules are written for older kernels in general. After making sure autoconf.h and utsversion.h are where vmware expects them, I get the same conflicting types error in poll.h.
I can change the Makefile that the script uses to build the modules to use a -DVMW_HAVE_EPOLL, which fixes the problem, but then another error pops up. This module code just isn't make for Ubuntu, it seems.
Related videos on Youtube
shahjapan
Updated on September 17, 2022Comments
-
shahjapan over 1 year
I've installed Vmware 6.5 on Ubuntu 10.10...
when I start vmware player/workstation its asking for linux kernel header for some compilation but I'm not able to find the appropriate package, see the Image below....
Update
after running following commands
sudo -s cd /lib/modules/$(uname -r)/build/include/linux ln -s ../generated/utsrelease.h ln -s ../generated/autoconf.h
Error has been changed like below....
ERROR: modinfo: could not find module vmmon ERROR: modinfo: could not find module vmnet ERROR: modinfo: could not find module vmblock ERROR: modinfo: could not find module vmci ERROR: modinfo: could not find module vsock
Using 2.6.x kernel build system. make: Entering directory
/tmp/vmware-root/modules/vmmon-only' make -C /lib/modules/2.6.35-22-generic/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory
/usr/src/linux-headers-2.6.35-22-generic' CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o In file included from /tmp/vmware-root/modules/vmmon-only/linux/driver.c:31: /tmp/vmware-root/modules/vmmon-only/./include/compat_wait.h:78: error: conflicting types for ‘poll_initwait’ include/linux/poll.h:72: note: previous declaration of ‘poll_initwait’ was here -
shahjapan over 13 yearsstill can't find those module after doing this stuff !!!