LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hi..i need gcc 4.3 version..currently m having gcc 4.6 on ubuntu 12.04 plz help (https://www.linuxquestions.org/questions/linux-newbie-8/hi-i-need-gcc-4-3-version-currently-m-having-gcc-4-6-on-ubuntu-12-04-plz-help-4175505182/)

vishakha singhal 05-16-2014 01:04 AM

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.

btmiller 05-16-2014 01:19 AM

You can download it and build it yourself from http://gcc.gnu.org. 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?

knudfl 05-16-2014 06:05 AM

@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:
. http://www.linuxquestions.org/questions/tags/leach/
. http://www.linuxquestions.org/questions/tags/pegasis/

GCC and g++ version 4.1.2 : See post #18 here ...
http://www.linuxquestions.org/questi...022/page2.html

-

Lantzvillian 05-16-2014 12:03 PM

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.


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