While attempting to get a fresh VM of Kali Linux (3.12.6-2kali1,3.12-kali1-amd64) to install VMWare Tools (8.8.0 build-471268), I ran into the following errors (among others).
Use of uninitialized value $subLevel in split at /usr/bin/vmware-config-tools.pl line 5324. Use of uninitialized value $subLevel in concatenation (.) or string at /usr/bin/vmware-config-tools.pl line 5325. Argument "12-kali1-amd64" isn't numeric in multiplication (*) at /usr/bin/vmware-config-tools.pl line 4859. Use of uninitialized value $subLevel in addition (+) at /usr/bin/vmware-config-tools.pl line 4859.
My primary intent was to use Unity mode, since some basic functionality was already working with the default install (such as not needing ctrl-alt to move mouse to host OS).
On line 1, change
Around line 844, change the following line:
version_uts=`name -r|cut -d"-" -f1`
Please note that is the backtick/grave character(` on key with tilde ~), not an apostrophe (‘)
I know this is not the ideal/perfect fix, however it was enough to get Unity mode working for me.