||08-15-2009 07:24 PM
Wrong version of gcc -- how do I change it?
I'm trying to install VMware on Debian (Lenny) and I'm at the point of configuring, but then when it goes to compile, I get the following -
Building the vmmon module.
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config3/vmmon-only'
make -C /lib/modules/2.6.26-1-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make: Entering directory `/usr/src/linux-headers-2.6.26-1-686'
/tmp/vmware-config3/vmmon-only/Makefile:106: *** Inappropriate build environment: you wanted to use gcc version 4.3.2 while kernel attempts to use gcc version 4.1.3.
/tmp/vmware-config3/vmmon-only/Makefile:108: *** For proper build you'll have to replace gcc-4.1 with symbolic link to /usr/bin/gcc. Stop.
make: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-config3/vmmon-only'
Unable to build the vmmon module.
So basically, from what I see is that my version of gcc is 4.3.2, but the kernel is trying to use 4.1.3. When I invoke aptitude, it shows 4.1 is installed, but I cannot find it.
Any ideas? Do I need to remove and then re-install it?