LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-12-2008, 11:13 PM   #1
parent's_basement
Member
 
Registered: Dec 2006
Location: Berkeley, CA. Over-priced apartment
Distribution: Debian/XFCE/Cinnamon
Posts: 121

Rep: Reputation: 17
need an older gcc version


Hello,

VMware is requesting an older version of gcc:

Your kernel was built with "gcc" version "4.1.3", while you are trying to use
"/usr/bin/gcc" version "4.3.2". 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.

I've uninstalled gcc 4.3.2 but how do I locate and install gcc 4.1.3? I've gone to http://gcc.gnu.org/releases.html but don't see the version I need.

Thanks,

pb
 
Old 12-13-2008, 12:54 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
4.1 should be in your repo.

#apt-get install gcc-4.1
#export CC=/usr/bin/gcc-4.1
 
Old 12-17-2008, 08:10 PM   #3
BorderAmigos
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
You may have the version you need already. In my case in /usr/bin I have gcc-3.3, gcc-3.4, gcc-4.1, gcc-4.2 and gcc-4.3. The trick for me is the symbolic link simply named gcc. When I get the error you mention I change the link to point to the appropriate version. You appear to have it linked to gcc-4.3 but you want it to gcc-4.2. Try the following...

ln -s -f /usr/bin/gcc-4.1 /usr/bin/gcc

The -f forces the link overwriting the existing one, your directories may be different.
 
Old 12-18-2008, 07:04 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I use the export command as jens suggests. it's only a temporary change of a variable in the local environment.

Code:
it-etch:~# export CC=gcc-4.1
it-etch:~# echo $CC
gcc-4.1
it-etch:~# exit
logout
user@it-etch:~$ su - 
Password: 
it-etch:~# echo $CC

it-etch:~#
just exiting that shell clears the change so you aren't doing anything that is semi-permanent.
 
Old 12-18-2008, 07:04 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I use the export command as jens suggests. it's only a temporary change of a variable in the local environment.

Code:
it-etch:~# export CC=gcc-4.1
it-etch:~# echo $CC
gcc-4.1
it-etch:~# exit
logout
user@it-etch:~$ su - 
Password: 
it-etch:~# echo $CC

it-etch:~#
just exiting that shell clears the change so you aren't doing anything that is semi-permanent.
 
  


Reply



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
install or upgrade newer or older gcc version saistain Linux - Software 1 10-19-2007 10:26 PM
installing older version of gcc and and adding path variables jaind Linux - Desktop 3 11-26-2006 06:18 AM
kernel build problems -how to install older gcc version? kpachopoulos Fedora 3 07-04-2005 08:56 AM
using an older version of gcc win32sux Slackware 1 05-12-2004 01:53 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:44 AM.

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