Skip to content

Instantly share code, notes, and snippets.

@touhidshaikh
Created December 10, 2020 13:41
Show Gist options
  • Save touhidshaikh/57ad50f5b49b87acc85c268db7031bd5 to your computer and use it in GitHub Desktop.
Save touhidshaikh/57ad50f5b49b87acc85c268db7031bd5 to your computer and use it in GitHub Desktop.
VMWare GNU C Compiler (GCC) version 4.9.2 was not found issue fixed
#!/bin/bash
#Install Kernel Headers
sudo apt-get install build-essential linux-headers-generic
#Fixing the GCC issue.
cd /usr/lib/vmware/modules/source
sudo tar xvf vmnet.tar
cd vmnet-only
sudo make
cd ..
sudo tar xvf vmmon.tar
cd vmmon-only
sudo make
cd ..
sudo mkdir /lib/modules/`uname -r`/misc
sudo cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
sudo cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
sudo depmod -a
sudo /etc/init.d/vmware restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment