Thanks for your response!
Could you please give me some pointers to download rpm for older gcc so that I can build this version using them.
I tried downloading rpm from here:
but while installing the rpm talks about dependencies.
Why its so bad and tough. Nothing works fine.
Thanks for your help