Created
December 10, 2020 13:41
-
-
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
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 | |
#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