Recently ran into an issue were I was receiving VMWare module compilation errors when installing VMWare Workstation 8.0.4. The error I was receiving was it couldn’t execute and find the kernel-headers which were installed but not where VMWare was looking for them.
Download and install latest licensed version 8.0.4 from http://www.vmware.com/support
$ chmod +x VMware-Workstation-Full-8.0.4-744019.x86_64.bundle
$ sudo ./VMware-Workstation-Full-8.0.4-744019.x86_64.bundle
Install needed modules for module compilation
$ sudo yum install automake autoconf gcc kernel-devel kernel-headers
Extract the tarball and edit patch-modules_3.4.0.sh
$ vi patch-modules_3.4.0.sh
We need to make the change because the script is looking for 8.0.2 and we have 8.0.4.
Run the patch as root
$ sudo ./patch-modules_3.4.0.sh
Now we are ready to fire up VMWare Workstation 8.0.4 and start virtualizing.