-   Linux - Software (
-   -   Wrong version of gcc -- how do I change it? (

AKviking 08-15-2009 08: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[1]: 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[1]: *** [_module_/tmp/vmware-config3/vmmon-only] Error 2
make[1]: 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?


AlucardZero 08-15-2009 11:26 PM


aptitude install gcc-4.1

export CC=/usr/bin/gcc-4.1


Should do it. If you have to symlink as it says, it's stupid.

All times are GMT -5. The time now is 10:24 AM.