Skip to content

Instantly share code, notes, and snippets.

@denhamparry
Created October 12, 2020 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denhamparry/ed3da377cfff4f96c87c7fc66fe16d49 to your computer and use it in GitHub Desktop.
Save denhamparry/ed3da377cfff4f96c87c7fc66fe16d49 to your computer and use it in GitHub Desktop.
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