How to install an old version of gcc using yum on fedora 18?
Solution 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.