Fixed Error 'VMware GCC Not Found on Kali Linux


For users of updated kali linux such as kali linux 2020.1 to kali linux 2020.3 or the latest, they must have experienced difficulties when installing vmware. This is because vmware itself requires gcc (Gnu Compiler Collection) while gcc 5 to gcc 7 in kali linux 2020 is no longer used, for details see the following link:

Because of this, vmware when installed will bring up the sentence vmware gcc not found, to configure vmware so that it can run without having to bother looking for the gcc installation according to the veris can be done in the following way:

1. Install VMWARE

sudo apt install vmware

2. Configuring modules on vmware

cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
tar xf vmnet.tar
cd vmmon-only
cd ../vmnet-only
cd ..
mkdir /lib/modules/`uname -r`/misc
cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
depmod -a
/etc/init.d/vmware restart

If the above method does not work, you can replace the repository by using the repository below, by typing sudo nano /etc/apt/sources.list:

deb kali-rolling main non-free contrib
deb-src kali-rolling main non-free contrib

deb kali-dev main contrib non-free
deb kali-dev main/debian-installer
deb-src kali-dev main contrib non-free

deb sana main non-free contrib
deb-src sana main non-free contrib

deb buster main contrib