I am running into the same problem on kali linux 1.0.1 x64 (debian wheezy). I am running VMware Workstation 9.0.2 with VMwareTools-9.2.3-1031360.tar.gz
The process I am trying is:
echo cups enabled >> /usr/sbin/update-rc.d
echo vmware-tools enabled >> /usr/sbin/update-rc.d
apt-get install gcc make linux-headers-$(uname -r)
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/uapi/linux/version.h /usr/src/linux-headers-$(uname -r)/include/linux/
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/utsrelease.h /usr/src/linux-headers-$(uname -r)/include/linux/
ln -s /usr/src/linux-headers-$(uname -r)/include/generated/autoconf.h /usr/src/linux-headers-$(uname -r)/include/linux/
When the script tries starting the tools I am getting the following error:
/etc/init.d/vmware-tools: 1090: local: ': bad variable name
Blocking file system: failed
/etc/init.d/vmware-tools: 1187: local: ': bad variable name
Guest operating system daemon: done
Unable to start services for VMware Tools
When I look at both line 1090 and 1187 the code is:
local run_kver=`get_version_integer`
It appears the variable is not getting set for some reason or is out of range.
Any sugguestions would be appreciated
GP