این مقاله مشکلتو حل میکنه.
Download and Install C, C++ Compiler on Red Hat Enterprise Linux 5 (RHEL)
موفق باشی...