gruna
Enthusiast
Enthusiast

Can not install or run Vmware Player / Workstation on Linux with gcc5.1

Jump to solution

Hi,

unfortunately i had to update my system to the latest kernel which was compiled with gcc 5.1

I also installed gcc 5.1

gcc --version

gcc (SUSE Linux) 5.1.1 20150622 [gcc-5-branch revision 224722]

Still i get this one while trying to run vmware

./vmware-modconfig --console --install-all

Failed to get gcc information.

Please help,

Gruna

0 Kudos
1 Solution

Accepted Solutions
rainerklier
Contributor
Contributor
  1. cd /usr/lib/vmware/modules/source
  2. unpack vmnet.tar
  3. cd vmnet-only
  4. make
  5. cd ..
  6. unpack vmmon.tar
  7. cd vmmon-only
  8. make
  9. cd ..
  10. cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
  11. cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
  12. depmod -a
  13. /etc/init.d/vmware restart

View solution in original post

0 Kudos
9 Replies
rainerklier
Contributor
Contributor

me too!

i have exactly the same problem!

but it should work because kernel and installed gcc fit together:

Kernel 4.1.0 is compiled with gcc 5.1.1:

cat /proc/version

Linux version 4.1.0-2.g6c74958-desktop (geeko@buildhost) (gcc version 5.1.1 20150622 [gcc-5-branch revision 224722] (SUSE Linux) ) #1 SMP PREEMPT Wed Jun 24 03:16:43 UTC 2015 (6c74958)

and i have installed gcc 5.1.1:

gcc --version

gcc (SUSE Linux) 5.1.1 20150622 [gcc-5-branch revision 224722]

Copyright (C) 2015 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.

but it is not working.

0 Kudos
gruna
Enthusiast
Enthusiast

Exactly, i get an error that vmware is not able to find gcc 5.1.1 allthough this is exactly what is installed on the system.

I am also able to compile other things, like display driver for example.

0 Kudos
gruna
Enthusiast
Enthusiast

Not a single idea?

0 Kudos
rainerklier
Contributor
Contributor

i solved it by manually compiling the modules vmnet and vmmon and copying the results to /lib/modules/4.1.0-2.g6c74958-desktop/misc.

0 Kudos
gruna
Enthusiast
Enthusiast

Hmm. could you provide some work instruction for it?

0 Kudos
rainerklier
Contributor
Contributor
  1. cd /usr/lib/vmware/modules/source
  2. unpack vmnet.tar
  3. cd vmnet-only
  4. make
  5. cd ..
  6. unpack vmmon.tar
  7. cd vmmon-only
  8. make
  9. cd ..
  10. cp vmmon.o /lib/modules/`uname -r`/misc/vmmon.ko
  11. cp vmnet.o /lib/modules/`uname -r`/misc/vmnet.ko
  12. depmod -a
  13. /etc/init.d/vmware restart

View solution in original post

0 Kudos
gruna
Enthusiast
Enthusiast

Many Many thanks

0 Kudos
gmoney
Contributor
Contributor

Thank you for the instructions, spot on.  On an OpenSUSE Tumbleweed system I had to modify the driver path and do:

cp vmmon.o /lib/modules/`uname -r`/kernel/drivers/misc/vmmon.ko

cp vmnet.o /lib/modules/`uname -r`/kernel/drivers/misc/vmnet.ko

Thank you again for the detailed instructions, I'm getting closer now.

0 Kudos
illu
Contributor
Contributor

Thank you for this hint Smiley Happy

In addition: on my SUSE 13.1, Kernel 4.1.4-1.ga37e14f-desktop: I must use "make -B" to compile.

0 Kudos