VMware GCC 9.2.1

Asked by John Shakespeare on 2019-10-13

I've installed xubuntu 18.04 on a newsystem, and I'm trying to install VMware Workstation Player 15.5.0 on it.
Is anyone else getting this complaint?

I have updated the system to gcc 9 using

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test

$ sudo apt-get update

I can reverse these changes, if needed. It still gives the error (I think it has to do with the minor version number). I'm using the kernel 5.3.4, since it apparently gives the fewest crashes (about once per day) on nvidia 1060. Other kernels can be used; I would prefer kernels >5.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
John Shakespeare
Solved:
2019-10-14
Last query:
2019-10-14
Last reply:
2019-10-14
Manfred Hampl (m-hampl) said : #1

"It still gives the error"

Which error? Please provide the full text.

"Before you can run VMware, several modules must be compiled and loaded into the running kernel.
GCC
GNU C Compiler (gcc) version 9.2.1 was not found. If you installed it in a non-default path you can specify the path below. Otherwise refer to your distribution's documentation for installation instructors and click Refresh to search again in default locations."
There is a box marked 'Location:' it appears to take text, and some buttons "Install", "Cancel", "Refresh", and "Brose"

"Brose"

"Brose" should be "Browse"

I have already installed gcc and build-essential

Manfred Hampl (m-hampl) said : #5

For diagnostic purposes, what is the output of the commands

uname -a
lsb_release -crid
apt-cache policy gcc-9
gcc --version

Maybe you have to use a different PPA for a sufficiently high version of the compiler, eventually ppa:jonathonf/gcc-9.2

I reduced the kernel version from 5.3.4 to 5.0.0-32 and it all went well. Maybe the kernel versions are dodgy, and they refer to an unreleased version of gcc.

FWIW here are the answers to your questions:
$ uname -a
Linux RYZEN 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
$ apt-cache policy gcc-9
gcc-9:
  Installed: (none)
  Candidate: 9.1.0-2ubuntu2~18.04
  Version table:
     9.1.0-2ubuntu2~18.04 500
        500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic/main amd64 Packages
$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.