VMware on Ubuntu 15.10 - GNU C Compiler (gcc) version 4.9.2 was not found

Solution 1:

Try running

sudo apt-get install build-essential linux-headers-generic

then open your vmware & in 1st window and click Install, wait for about 7 mins & vmware will be open.

Solution 2:

For kernel 3.x version - install the package gcc-4.9

sudo apt-get install --reinstall gcc-4.9

For kernel 4.x version - install the package gcc-5

sudo apt-get install --reinstall gcc-5

To always have the latest version installed

sudo apt-get install --reinstall gcc

Solution 3:

None of the other solutions here worked for me using Ubuntu 15.10 and vmware 12.1 pro, which was asking for gcc 4.9.2

The problem was caused by ld path (dynamic libs), and I needed to fix vmware as follows:

cd /usr/lib/vmware/modules/source
tar xvf vmnet.tar
cd vmnet-only
make
cd ..
tar xvf vmmon.tar
cd vmmon-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
nano /usr/bin/vmware

add before set -e :

export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH

Save & exit and launch Vmware!

Complete thread here : https://communities.vmware.com/thread/521374

Solution 4:

I found a solution:

/usr/bin/gcc-5

It works for me.