After I installed the lastest Ubuntu version, VMware didn't work. I just cliked and nothing. After I tried export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libglibmm-2.4.so.1/:$LD_LIBRARY_PATH vmware I got this error:

enter image description here

Also, I tried sudo apt-get install build-essential linux-headers-generic and it says everything's up to date and there's no update available.

And I tried sudo /etc/init.d/vmware start command and I got this:

enter image description here

What's the problem?

    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.

    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