Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-16-2014, 02:04 AM   #1
vishakha singhal
LQ Newbie
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
hi..i need gcc 4.3 version..currently m having gcc 4.6 on ubuntu 12.04 plz help

hi..i need gcc 4.3 version..currently m having gcc 4.6 on ubuntu 12.04 plz help.
Old 05-16-2014, 02:19 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
You can download it and build it yourself from You should install it in a separate directory, e.g. /opt/gcc-4.3, so as not to mess with the existing gcc on your system. You should *not* attempt to replace your existing gcc, just install the older version in a separate directory and set your PATH and LD_LIBRARY_PATH appropriately when you want to use it.

What do you need such an old version for, anyway?
1 members found this post helpful.
Old 05-16-2014, 07:05 AM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
@vishakha singhal : Welcome to LQ.

The Ubuntu 12.04 default compilers are gcc-4.6, gcc-4.5, gcc-4.4 .

Ref. your other post : ns-2.34 + leach :
GCC-4.3 worked OK with Ubuntu 10.04, until 10.04 got updated.
Since then ( 3 years ago ) you will have to use gcc / g++ version 4.1.2 .
( If it's a 64bits OS, g++-4.4 may work.)
* Generally :
* Do not use three year old install advices, read the current instructions:

GCC and g++ version 4.1.2 : See post #18 here ...


Last edited by knudfl; 05-16-2014 at 07:11 AM.
Old 05-16-2014, 01:03 PM   #4
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
As someone has already suggested - why do you need GCC 4.3?

Is it because a newer version throws errors for some poorly written or ambiguous code? If it does - I owuld look at fixing the offending code.


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
Version of gcc ns2 with ubuntu 12.04 ines8989 Linux - Networking 3 02-09-2015 04:59 AM
[SOLVED] Whats the difference with gcc 4.5.2-8ubuntu and gcc 4.5.2 generic version Arcosanti Ubuntu 4 08-20-2012 12:05 AM
[SOLVED] Upgraded GCC on Gentoo, different GCC version used when not root. fakie_flip Linux - Software 2 07-14-2012 12:11 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 AM.

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