1 Answer
1

yum install gcc should work, as you suspect. Maybe you need to subscribe to a specific channel in RHN but this gcc advisory seems to indicate that gcc should be available on all of these channels, and I assume you're already subscribe to at least one of them:

yup. I work in a company and i'm trying to do this in one of their servers
–
Chander ShivdasaniNov 28 '11 at 21:53

@Chader Shivdasani: Can you see the system in your RHN ? For a registered system, "yum repolist all" ran as root should yield, amongst other lines: rhel-x86_64-server-6 Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64) 6,909 You can also run, as root, "rhn-register", if the system is already registered, then a "This systems appears to be registered with RHN" will show up. If the system isn't registered, you can then do it via rhn_register or rhnreg_ks.
–
wormintrudeFeb 28 '12 at 19:04