Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
VMware kernel module: a compatible version of gcc was not found

VMware kernel module: a compatible version of gcc was not found

Issue

When installing VMware Workstation, error message appears saying gcc was not found.

Solution

cd /usr/lib/vmware/modules/source
tar xf vmmon.tar
tar xf vmnet.tar
cd vmmon-only
make
cd ../vmnet-only
make
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment