VMWare Can't Find GCC 5.1.1 Although it's There

I installed VMWare and it wants to compile some of its stuff and needs GCC 5.1.1 which I have installed in /usr/bin/gcc.

Regretfully VMWare keeps telling me it can’t find a compatible GCC version.

What might be the problem ?

Here is the output of my gcc -v command

 alexander@localhost:~> gcc -v 
Using built-in specs. 
COLLECT_GCC=gcc 
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/5/lto-wrapper 
Target: x86_64-suse-linux 
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/shar
e/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,
obj-c++,java,ada,go --enable-checking=release --with-gxx-include-dir=/usr/include/c++/5 
--enable-ssp --disable-libssp --disable-libvtv --enable-libmpx --disable-plugin --with-b
ugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --with-s
libdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new 
--disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id 
--enable-linux-futex --program-suffix=-5 --without-system-libunwind --enable-multilib --
with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux --host=x86_64-suse-linux 
Thread model: posix 
gcc version 5.1.1 20150713 [gcc-5-branch revision 225736] (SUSE Linux)  
alexander@localhost:~>  




I just tried


 vmware-modconfig --console --install-all 

and got the following error.

Failed to get gcc information.

Hi
Have a read here, not supported yet, but seems to be a work around on page 2;
https://communities.vmware.com/thread/509702?tstart=0

If you cpu supports virtualization, maybe look at something like kvm instead to avoid these sorts of issues…

OK I installed KVM but when I try to launch the Virtual Machines Manager nothing happens.

When I try to launch virt-manager from Konsole I get the following error

sudo virt-manager
Traceback (most recent call last):
File “/usr/share/virt-manager/virt-manager”, line 31, in <module>
from gi.repository import LibvirtGLib
ImportError: cannot import name LibvirtGLib

EDIT: I searched for and installed LibvritGLib manually and now it launches but displays another error:

Unable to connect to libvirt.

no connection driver available for qemu:///system

When I click details I get the following

Unable to connect to libvirt.

no connection driver available for qemu:///system

Libvirt URI is: qemu:///system

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/connection.py”, line 864, in _do_open
self._backend.open(self._do_creds_password)
File “/usr/share/virt-manager/virtinst/connection.py”, line 161, in open
open_flags)
File “/usr/lib64/python2.7/site-packages/libvirt.py”, line 105, in openAuth
if ret is None:raise libvirtError(‘virConnectOpenAuth() failed’)
libvirtError: no connection driver available for qemu:///system

Hi
Is the kvm kernel module for your cpu loaded?


lsmod | grep kvm

For amd cpu it’s kvm_amd and intel kvm_intel, also is virtualization enabled in the system BIOS?

Is the libvirtd service enabled and running?


systemctl status libvirtd.service

Problem solved. Here is what I did.

zypper addrepo http://download.opensuse.org/repositories/Virtualization/openSUSE_Tumbleweed/Virtualization.repo
zypper refresh
zypper install qemu

This installed qemu from the Virtualization repository.

Tried again. Same error. So I ran

sudo zypper dup

and replaced all virtualization libraries with the ones from the new repo. This solved the problem successfully.

Now I have another problem. Xen promised me that at boot there will be an option to boot into Xen but I see no such option. What did I do wrong ?

On Wed 30 Sep 2015 03:16:01 PM CDT, Dellius wrote:

Problem solved. Here is what I did.

Code:

zypper addrepo
http://download.opensuse.org/repositories/Virtualization/openSUSE_Tumbleweed/Virtualization.repo
zypper refresh zypper install qemu

This installed qemu from the Virtualization repository.

Tried again. Same error. So I ran
Code:

sudo zypper dup

and replaced all virtualization libraries with the ones from the new
repo. This solved the problem successfully.

Now I have another problem. Xen promised me that at boot there will be
an option to boot into Xen but I see no such option. What did I do wrong
?

Hi
I don’t use Xen just kvm/virsh.

Have you looked in YaST at the virtualization tools?


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 | GNOME 3.10.1 | 3.12.44-52.18-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Interesting if you can get gcc5.x to work.

When I ran into what seems to likely be the same problem running vmware-tools-patches (the way to upgrade Tools) a couple months ago which involves re-compiling the kernel, my solution was to revert to gcc 4.6.

With this thread, I’m re-thinking whether gcc5.x is altogether “bad” with my recent experience updating Tools on LEAP. LEAP installs both gcc 4.6 and 5.x, and I <think> it’s successfully using gcc 5.x to update Tools(well, it worked up to M2. There is now a problem with Beta 1. Who knows, maybe with Beta 1 LEAP incorporated a TW method that breaks gcc 5.x). It might be interesting to see if Workstation 11 or 12 installs on LEAP without a problem, this might indicate it’s not gcc 5.x but how it’s implemented that is the problem.

In the meantime, I’ve submitted a feature request for TW to implement gcc as an “update-alternatives” to enable easy and quick switching.

TSU

Downgraded to 13.2. Now it works fine.

Almost certainly because gcc 5.x hasn’t been pushed to 13.2 so you’re compiling with gcc 4.6.
As I noted, I’ve found the same in TW, if you compile with gcc 4.6 you should be successful.

TSU