How to install an old version of gcc using yum on fedora 18?

2

I want to install gcc 3.6 on fedora 18.

when I do yum install gcc

I get the gcc 4.7. but I want an old version.

becks

Posted 2013-07-12T19:02:56.660

Reputation: 135

May I ask why you want this? – Ignacio Vazquez-Abrams – 2013-07-12T19:08:00.070

to install qemu. as it has problems with new gcc.

recommended to use gcc 3.6 – becks – 2013-07-12T19:10:04.843

... Why not use the QEMU that comes with Fedora? – Ignacio Vazquez-Abrams – 2013-07-12T19:10:55.533

I'm doing some work with qemu. changine source codes so I need to reinstall from source using gcc 3.6 – becks – 2013-07-12T19:12:53.510

Perhaps you should invest some time into figuring out how they got it to build with 4.7. – Ignacio Vazquez-Abrams – 2013-07-12T19:13:47.327

I did but there're A LOT of errors. So, I prefer to stick with the recommendations – becks – 2013-07-12T19:19:51.317

Did you mean 3.4.6, and not 3.6? Regardless, use a gcc hosting site like Netgull and download the tar for the version you want. If you can't do run level 5 and are stuck at the command line, get the full link on another device and use wget to pull the tar on your F18 machine. From there you should just need to extract the tar and run ./configure. I don't think old versions of GCC are available through yum.

– Mono – 2013-07-12T19:58:00.780

Answers

1

If you're prepared to settle for gcc version 3.4 instead, try:

yum install compat-gcc-34

if not, then you'll have to build your own from a source tarball on the gnu website:

http://www.gnu.org/software/gcc/

The build process will take quite some time, but it's simple enough.

James Paul Turner

Posted 2013-07-12T19:02:56.660

Reputation: 348