Skip to content

Instantly share code, notes, and snippets.

@tsundokul
Created November 7, 2020 12:28
Show Gist options
  • Save tsundokul/c265bdc6c94f26327d36dc2e3953ee8d to your computer and use it in GitHub Desktop.
Save tsundokul/c265bdc6c94f26327d36dc2e3953ee8d to your computer and use it in GitHub Desktop.
VMWare Fix for: A compatible version of gcc was not found
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
cd /usr/lib/vmware/modules/source
tar xvf vmnet.tar
cd vmnet-only
make
cd ..
tar xvf vmmon.tar
cd vmmon-only
make
cd ..
cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko
cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko
depmod -a
systemctl restart vmware.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment