Vmware: can't compile modules, gcc 9.40 not found

Questions about virtualization software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Spaceboy60
Level 1
Level 1
Posts: 29
Joined: Tue Jun 28, 2022 4:57 pm

Vmware: can't compile modules, gcc 9.40 not found

Post by Spaceboy60 »

Get the following error upon opening Vmware:

Image

which gcc:
/usr/bin/gcc

gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

I also installed "build-essential" before gcc and installing Vmware.

Any suggestions?
Last edited by LockBot on Sun Jan 01, 2023 11:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by deepakdeshp »

Install latest VMware version and try.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Spaceboy60
Level 1
Level 1
Posts: 29
Joined: Tue Jun 28, 2022 4:57 pm

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by Spaceboy60 »

PCDoctor wrote: Wed Jun 29, 2022 1:04 am Try it with secureboot off in the bios
Secure boot is already off
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by MikeNovember »

Hi,

Have you tried to enter gcc path "/usr/bin/gcc", as requested?

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
deepakdeshp
Level 20
Level 20
Posts: 12341
Joined: Sun Aug 09, 2015 10:00 am

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by deepakdeshp »

Spaceboy60 wrote: Wed Jun 29, 2022 5:18 pm
PCDoctor wrote: Wed Jun 29, 2022 1:04 am Try it with secureboot off in the bios
Secure boot is already off
Did you try this?
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help.
Regards,
Deepak

Mint 21.1 Cinnamon 64 bit with AMD A6 / 8GB
Mint 21.1 Cinnamon AMD Ryzen3500U/8gb
Spaceboy60
Level 1
Level 1
Posts: 29
Joined: Tue Jun 28, 2022 4:57 pm

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by Spaceboy60 »

deepakdeshp wrote: Thu Jun 30, 2022 7:19 pm
Spaceboy60 wrote: Wed Jun 29, 2022 5:18 pm
PCDoctor wrote: Wed Jun 29, 2022 1:04 am Try it with secureboot off in the bios
Secure boot is already off
Did you try this?
As I said secure boot off in bios already and same error
sideband
Level 2
Level 2
Posts: 72
Joined: Mon Apr 20, 2015 4:25 am

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by sideband »

There is a similar issue noted here with Ubuntu 20.04 but with version 12 of VMWare. There are some hints towards a fix

https://ubuntuforums.org/showthread.php?t=2448058 (Ubuntu 20.04.1 LTS VMWare 12 Pro will not start GCC not found)

If it's any help, Linux Mint (Mate) 20.3 with kernel 5.4.0-121 and gcc version 9.4.0 is currently successfully compiling the two VMWare modules following kernel updates - VMware® Workstation 16 Player version 16.2.3 build-19376536

The VMWare Community may be able to offer further assistance
User avatar
MikeNovember
Level 7
Level 7
Posts: 1856
Joined: Fri Feb 28, 2020 7:37 am
Location: Nice, Paris, France

Re: Vmware: can't compile modules, gcc 9.40 not found

Post by MikeNovember »

sideband wrote: Fri Jul 01, 2022 3:33 am There is a similar issue noted here with Ubuntu 20.04 but with version 12 of VMWare. There are some hints towards a fix

https://ubuntuforums.org/showthread.php?t=2448058 (Ubuntu 20.04.1 LTS VMWare 12 Pro will not start GCC not found)

If it's any help, Linux Mint (Mate) 20.3 with kernel 5.4.0-121 and gcc version 9.4.0 is currently successfully compiling the two VMWare modules following kernel updates - VMware® Workstation 16 Player version 16.2.3 build-19376536

The VMWare Community may be able to offer further assistance
Hi,

It seems the fixes concern old versions of VMware (12.x for workstation, 15.x for player).

I have never got this compiling problem for VMware Player 15.5.x up to 16.2.3, on Linux Mint 19.x and 20.x (now with 20.3 and 5.4.0-121).

Note that I sometimes got some installation problem, solved with the following:

Code: Select all

sudo apt install gcc build-essential -y
export LC_ALL=C
preceding the installation command:

Code: Select all

cd Downloads
sudo ./VMware-Player*
The unusual command that avoided installation problems is "export LC_ALL=C"

Regards,

MN
_____________________________
Linux Mint 21.3 Mate host with Ubuntu Pro enabled, VMware Workstation Player with Windows 10 Pro guest, ASUS G74SX (i7-2670QM, 16 GB RAM, GTX560M with 3GB RAM, 1TB SSD).
Locked

Return to “Virtual Machines”