Created
November 7, 2020 12:28
-
-
Save tsundokul/c265bdc6c94f26327d36dc2e3953ee8d to your computer and use it in GitHub Desktop.
VMWare Fix for: A compatible version of gcc was not found
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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