LinuxQuestions.org
Review your favorite Linux distribution.
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-28-2008, 07:59 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,455

Rep: Reputation: 85
Using old gcc. How to do? Is it safe?


Hya,

I have lenny Penguin, with gcc-4.3.

I need to use older gcc's (4.2 or 4.1) to compile. Makefile is complicated (many children, grandchildren) so that I am reluctant to modify them. I know how to switch under MacOSX, but not debian.

Question 1.
How to do?
I installed older versions using aptitude, then made links (gcc and g++).

Web search says that "ccontrol" takes care, but I could not figure out how it works.

Question 2.
Does it make my penguin unstable? Is binary stable?

Thank you for replies.

Happy Penguins!
 
Old 12-28-2008, 08:32 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
This link may be of use:

http://www.linuxquestions.org/questi...ge+gcc+version


Regards.
The trooper
 
Old 12-28-2008, 10:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,284

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
No problem using them all ( except for kernel compilation )

They are all very stable, but with some differences.
gcc-2.95.3 gcc-3.3.6 gcc-3.4 gcc-4.1.2 gcc-4.2 gcc-4.3.2

And can be used by starting a command with e.g. for gcc :

CC=gcc4.2 ./configure or CC=gcc4.2 make

g++ : CXX=g++4.2 ... or whatever you have in /usr/bin
so in fact changing the link is not necessary.
....

Last edited by knudfl; 12-28-2008 at 10:18 AM.
 
  


Reply

Tags
binary, debian, gcc, lenny, old


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
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-23-2008 12:51 AM
help: failed build of GCC 4.3 on SLES 10/gcc 4.1 ia64 ron7000 Programming 6 05-28-2008 12:24 AM
pkg-get install gcc ERROR: gcc unrecognized Raidmax Solaris / OpenSolaris 10 08-30-2007 01:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 03:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 04:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration