Failure of Vmware Server 2 installation on SLES 11 SP2

Issue:
I am trying to install Vmware Server 2(VMware-server-2.0.2-203138.x86_64) installation on SUSE Linux Enterprise Server 11 (x86_64) SP2 and it fails with error:
None of the pre-built vmmon modules for VMware Server is suitable for your running kernel. Do you want this program to try to build the vmmon module for your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "4.3.4", while you are trying to use "/usr/bin/gcc" version "4.3". This configuration is not recommended and VMware Server may crash if you'll continue. Please try to use exactly same compiler as one used for building your kernel. Do you want to go with compiler "/usr/bin/gcc" version "4.3" anyway? [no]

Analysis:
When I check the gcc details I see the following
rpm -qa kernel* gcc*
gcc-c++-4.3-62.198
kernel-default-3.0.13-0.27.1
gcc43-4.3.4_20091019-0.22.17
kernel-source-3.0.13-0.27.1
kernel-default-devel-3.0.13-0.27.1
gcc-4.3-62.198
kernel-firmware-20110923-0.7.64
gcc43-c++-4.3.4_20091019-0.22.17
kernel-default-base-3.0.13-0.27.1
#########################################
gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3 --enable-ssp --disable-libssp --with-bugurl=openSUSE:Submitting bug reports - openSUSE --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.3 --enable-linux-futex --without-system-libunwind --with-cpu=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux)
#########################################
ls -l /usr/bin/gcc*
lrwxrwxrwx 1 root root 7 Mar 1 16:52 /usr/bin/gcc -> gcc-4.3
-rwxr-xr-x 1 root root 234752 Jan 13 2012 /usr/bin/gcc-4.3

I tried uninstalling all gcc then again installed it with zypper in gcc but still the issue persists.
Zypper by default installs gcc 4.3.

How to resolve this and get the vmware server installed?

Have you tried building with the default gcc compiler?

1 Like

thanks murphy for the reply.
I tried uninstalling all the gcc through yast and then I installed latest gcc using zypper in gcc command which installed gcc 4.3.
So I guess the default gcc is 4.3.
Am I correct?

I did not built the kernel code but still vmware installer complaints that kernel is built with 4.3.4.
Why so?

Ignore the message. Build the kernel modules and see what happens.

1 Like