If you want to install a newer version of gcc, you 'll have to install its dependencies as well. There're many changes between version 3 and 4 of gcc I think. Anyway, RH 9 is much older than fedora. You could try that adventure. Finding dependencies is a time-consumed job, but you'll feel great when you've finished. (in case you can finish it
)