LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-13-2008, 12:13 AM   #1
parent's_basement
Member
 
Registered: Dec 2006
Posts: 111

Rep: Reputation: 16
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, 01:54 AM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,239

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

#apt-get install gcc-4.1
#export CC=/usr/bin/gcc-4.1
 
Old 12-17-2008, 09: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, 08:04 AM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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, 08:04 AM   #5
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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


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


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration