VM Player 12.5.7 does not accept gcc 7.2 on Ubuntu 14.04

11,282

I solved via the : cd /usr/lib/vmware/modules/source tar -xf vmnet.tar cd vmnet-only make cd .. tar -xf vmmon.tar cd vmmon-only make cd .. 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

One may need to use sudo before each command above.

While running make during the above command execution, if there is an error, search the error in vmware community for a patch. For example i solved one issue using the following patch :

diff -Naur vmnet-only.orig/bridge.c vmnet-only/bridge.c --- vmnet-only/bridge.c 2017-06-26 22:08:39.148034785 +1000 +++ vmnet-only/bridge.c 2017-07-16 11:37:01.325802125 +1000 @@ -636,7 +636,7 @@ unsigned long flags; int i; - atomic_inc(&clone->users); + clone = skb_get(clone); clone->dev = dev; clone->protocol = eth_type_trans(clone, dev);

If you have the version.h file missing in your vmware log, try below code:

cd /usr/src/kernels/$(uname -r)/include/linux/ ln -s /usr/include/linux/version.h version.h

Note: I got all the above information from the Internet Now i can launch VMWare player

Share:
11,282

Related videos on Youtube

johann_ka
Author by

johann_ka

Updated on September 18, 2022

Comments

  • johann_ka
    johann_ka over 1 year

    Hello my dear Linux users,

    I run Ubuntu 14.04 and I have gcc-7 installed using the Toolchain test builds.

    When I start VM Player 12.5.7 build-5813279 it is asking for gcc 7.2. I point it to /usr/bin/gcc-7 but it says that this gcc version is not compatible.

    Any ideas on how to make this work?

    enter image description here

    • George Udosen
      George Udosen over 6 years
      Please run sudo update-alternatives --config gcc and paste into your question
    • George Udosen
      George Udosen over 6 years
      Are linux headers files installed if not install: sudo apt-get install linux-headers-$(uname -r)
    • johann_ka
      johann_ka over 6 years
      I'm currently in aptitude. There seem to be several unmet dependies: binutils >=2.26.1, cpp-7 =7.2.0, libisl15 >=0.15, lipmc3, lipmfr4 >=3.1.3 ...The problem is that aptitude keeps saying that these dependencies are unavailable. I have been trying to add them to the install list in aptitude.
    • johann_ka
      johann_ka over 6 years
      Yes, header files are installed: linux-headers-4.13.4-041304-lowlatency
    • George Udosen
      George Udosen over 6 years
      Try sudo dpkg --configure -a, then sudo apt-get update then sudo apt-get install -f
    • johann_ka
      johann_ka over 6 years
      0 updated, 0 installed, 0 ...
    • George Udosen
      George Udosen over 6 years
      Can you reinstall gcc again, sudo apt-get install --reinstall gcc
    • johann_ka
      johann_ka over 6 years
      Reinstalled. gcc --version: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
    • George Udosen
      George Udosen over 6 years
  • johann_ka
    johann_ka over 6 years
    gcc-7.2.0 is installed on my system. Repeatedly trying to make VM Player pick gcc-7.2.0 does not work.
  • Dave
    Dave over 6 years
    Did you follow my guide? This was what I had to do every time I updated the kernel.
  • George Udosen
    George Udosen over 6 years
    @johann_ka Please run sudo update-alternatives --config gcc and paste into your question
  • Dave
    Dave over 6 years
    Since you have gcc-7 installed using the Toolchain test builds, I would give the gcc-7.2 a try from repository ppa:jonathonf.
  • johann_ka
    johann_ka over 6 years
    @George - the output of sudo update-alternatives --config gcc is update-alternatives: error: no alternatives for gcc ..I have been trying to get this back (registering gcc) but so far unsuccessful.
  • johann_ka
    johann_ka over 6 years
    My gcc-7 in installed at /usr/bin/gcc-7 according to which gcc-7.
  • johann_ka
    johann_ka over 6 years
    @Dave - this suggestion didn't work. Maybe because of the prior Toolchain install.
  • Dave
    Dave over 6 years
    Please check out my updated answer.
  • Admin
    Admin over 6 years
    This also works for any of the version mismatch of vmmon/vmnet.ko and other related issues. I recompiled and copied manually as above. It worked in my case as well. This is for the current latest VMware Player v14.