VM Player 12.5.7 does not accept gcc 7.2 on Ubuntu 14.04
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
Related videos on Youtube
johann_ka
Updated on September 18, 2022Comments
-
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 forgcc 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?
-
George Udosen over 6 yearsPlease run
sudo update-alternatives --config gcc
and paste into your question -
George Udosen over 6 yearsAre linux headers files installed if not install:
sudo apt-get install linux-headers-$(uname -r)
-
johann_ka over 6 yearsI'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 over 6 yearsYes, header files are installed: linux-headers-4.13.4-041304-lowlatency
-
George Udosen over 6 yearsTry
sudo dpkg --configure -a
, thensudo apt-get update
thensudo apt-get install -f
-
johann_ka over 6 years0 updated, 0 installed, 0 ...
-
George Udosen over 6 yearsCan you reinstall gcc again,
sudo apt-get install --reinstall gcc
-
johann_ka over 6 yearsReinstalled. gcc --version: gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
-
George Udosen over 6 yearsLet us continue this discussion in chat.
-
-
johann_ka over 6 yearsgcc-7.2.0 is installed on my system. Repeatedly trying to make VM Player pick gcc-7.2.0 does not work.
-
Dave over 6 yearsDid you follow my guide? This was what I had to do every time I updated the kernel.
-
George Udosen over 6 years@johann_ka Please run
sudo update-alternatives --config gcc
and paste into your question -
Dave over 6 yearsSince 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 over 6 years@George - the output of
sudo update-alternatives --config gcc
isupdate-alternatives: error: no alternatives for gcc
..I have been trying to get this back (registering gcc) but so far unsuccessful. -
johann_ka over 6 yearsMy gcc-7 in installed at
/usr/bin/gcc-7
according towhich gcc-7
. -
johann_ka over 6 years@Dave - this suggestion didn't work. Maybe because of the prior Toolchain install.
-
Dave over 6 yearsPlease check out my updated answer.
-
Admin over 6 yearsThis 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.