Re: How to Install gcc
Mark Space <[email protected]>
| Newsgroups | gmane.linux.redhat.release.enigma |
|---|---|
| Message-ID | <[email protected]> |
Viashino wrote:
> Hello,
>
> I'm a newbie with Linux. I just install RH 7.2 and would like to write
> some code to learn C/C++.
> The problem is that I can't install gcc.
> I have a cd with Gcc, but it says that it can't find cc or gcc
> Well, obviuosly it can't find gcc, 'cause I have to install it, but
> cc? what it is?
> where can I find it.
gcc comes with the red hat cd, you'll probably want to use that version
for best compatiblilty. I don't have the CD listing in front of me, but
look on the install CDs under /RPMS or /RedHat/RPMS, there should be a
file gcc-*(lots here)-.rpm. Then install that by logging in as root
(just use "su" from a terminal window) and typing rpm -i
/path/to/rpms/gcc-whatever-.rpm and your worries should be over.
cc is the original name of gcc ("compile c"), gcc is the gnu (new) version.
BTW, there's an option to install "development tools" on the CD when you
do the install, maybe next time you could just do that?