I installed the VMware bundle on my Ubuntu 11.04 successfully but when I open it it gives me this window
and I don't know the path to this C headers.
cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h
After adding the symlink, the path is /usr/src/linux-headers-$(uname -r)/include
(Thanks @Kariem!)
/usr/src/linux-headers-$(uname -r)/include
Below commands are very helpful for you:
Step 1 : Ctrl + Alt + T
Step 2 : sudo apt-get install linux-headers-$(uname -r)
Step 3 : The path to the kernel headers is then
/usr/src/linux-headers-$(uname -r)/include
Before installing Vmware Workstation you need to install build-essential and linux headers
sudo apt-get install build-essential linux-headers-$(uname -r)
and then
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
Done thats it, install Vmware Workstation now
path to vm# sh Vm***.bundle
There are a few files in locations that the installer doesn't expect, I run this and it works:
ifrantz@ifrantz:~$ cat ~/update_version.sh
#!/bin/bash
cd /lib/modules/$(uname -r)/build/include/linux
sudo ln -s ../generated/utsrelease.h
sudo ln -s ../generated/autoconf.h
sudo ln -s ../generated/uapi/linux/version.h
My first guess is that you haven't installed the headers. You need to install the appropriate linux-headers package. Most likely, you need to install linux-headers-generic
. However, if if you're running some kernel other than linux-generic
, install the linux-headers package for that kernel.
If you've already installed the headers, they should be in /usr/src
.
linux-generic
. If so, install linux-headers-generic
, which will pull in the proper packages as dependencies. The exact headers package (and paths in the filesystem) change with each kernel update. Look on your system to find out which is in use.
May 8, 2011 at 17:42
Problem can be solved in two steps, after installing vmware workstation 9.X.X (in terminal):
sudo apt-get install gcc
sudo vmware-modconfig --console --install-all --appname="VMware Player" --icon="vmware-player"
CTRL+ALT+t
sudo apt-get install linux-headers-generic
Had the same issue, I was running kernel 3.2.0-29 but only had linux-headers-3.2.0-35 in /usr/src/
user@ubuntu:/usr/src$ ls -l
drwxr-xr-x 24 root root 4096 Jan 5 11:17 linux-headers-3.2.0-35
drwxr-xr-x 7 root root 4096 Jan 5 11:17 linux-headers-3.2.0-35-generic
user@ubuntu:/usr/src/linux-headers-3.2.0-35/include$ uname -a
Linux ubuntu 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_6 4 x86_64 x86_64 GNU/Linux
user@ubuntu:/usr/src$ sudo apt-get install linux-headers-3.2.0-29-generic
user@ubuntu:/usr/src/$ cd /tmp/vmware-tools-distrib
user@ubuntu:/tmp/vmware-tools-distrib$ sudo ./vmware-install.pl
<kept hitting enter>
Enjoy, --the VMware team
done and done
uname -a
). Because with the 11.04 upgrade ubuntu silently switched my kernel from linux-generic to linux-generic-pae without installing the relevant headers, which uses a different set of linux headers. As per the three responses below, usingapt-get
is the proper way to solve the issue, you just have to make sure the kernel headers are the right ones.