Or if you want to patch it before installing vmware from sources you need to go inside the unpacked source folder (in my case vmware-server-distrib) and do:
patch bin/vmware-config.pl /path/to/vmware-config.pl.patch
No sudo needed then and the installer works right away, otherwise you need to fix it after installing vmware.
Bookmarks