Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

compiling on Redhat 7.2, where's cc?? (newbie)

Status
Not open for further replies.

snookmz

Programmer
Apr 17, 2001
46
0
0
AU
g'day all

I just installed 7.2 and can't find a c/cc compiler anywhere on the system or in the RPMS directory on the CD.

has anyone got any idea where i can pick up the rpm for it???

thanks in advance :)
/-------------------------------------
| I always have been, and
| always will be, a newbie :)
\-------------------------------------
 
Hi,

In case the above is not clear enough, the compilers on linux are known as the GNU compiler collection (gcc). See --> .

You may have the rpms installed already - the command line to compile is like :

gcc hello.c -o hello (etc. - for c)
g++ hello.c -o hello (etc. - for c++)

Otherwise, like bubak says, you need to get hold of the rpms beginning with 'gcc' and install those. Do the command 'rpm -qa | grep ^gcc' to see if you have any installed already.

Regards
 
thanks for your help you two,

i need to install the GCC, because for some reason its either not in the standared redhat 7.2 install, or i deselected the package by mistake.. it doesnt' seem to be in the rpm's on the cd's either, but i know where i can get me a copy of it, thanks to you :)

thanks again, good karma too ya :) /-------------------------------------
| I always have been, and
| always will be, a newbie :)
\-------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top