LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial 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
 
LinkBack Search this Thread
Old 12-28-2008, 06: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,395

Rep: Reputation: 81
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, 07:32 AM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,471

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

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


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

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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 09: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
Trackbacks are Off
Pingbacks are On
Refbacks are 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-22-2008 11:51 PM
help: failed build of GCC 4.3 on SLES 10/gcc 4.1 ia64 ron7000 Programming 6 05-27-2008 11:24 PM
pkg-get install gcc ERROR: gcc unrecognized Raidmax Solaris / OpenSolaris 10 08-30-2007 12:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 02:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
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