Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-15-2009, 07:24 PM   #1
LQ Newbie
Registered: Jun 2009
Location: Palmer, AK
Distribution: Ubuntu, Debian
Posts: 21

Rep: Reputation: 0
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?

Old 08-15-2009, 10:26 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Wrong GCC version replica9000 Linux - Software 6 09-04-2007 03:04 PM
How to change the gcc compiler's default version? aladin Linux - Software 8 10-09-2005 08:07 PM
Wrong GCC version during compile? raid517 Linux - Software 4 09-14-2005 08:46 AM
Missing gcc or wrong version NoobVer.01 Fedora - Installation 1 08-19-2005 02:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration