How to install GCC on RedHat and Fedora Linux
(if you forgot to include it during installation).

Note: The directions found on this page illustrate how to hunt down RPM dependencies. If you don't care about the thought process, just download the newest versions of the following packages from rpmfind.net and install them: rpm -Uvh package1.rpm package2.rpm (replace that package names with the actual ones). You can find these packages by searching for the package name (gcc, cpp, glibc-devel, etc) and selecting the one which is listed as being the newest for your particular issue of Fedora or Redhat Linux. In essence, you will be following the chain of dependencies until they are all satisfied.

The FTP urls below are no longer valid because they have all been outdated. Therefor, I did not turn them into active links.

gcc-2.96-69.i386.rpm
binutils-2.10.0.18-1.i386.rpm
cpp-2.96-69.i386.rpm
glibc-devel-2.1.92-14.i386.rpm
kernel-headers-2.4.0-0.26.i386.rpm
glibc-devel-2.1.92-14.i386.rpm
  1. Download/install:
    ftp://ftp.rpmfind.net/linux/redhat/updates/7.0/en/os/i386//gcc-2.96-69.i386.rpm
    rpm -Uvh gcc-2.96-69.i386.rpm
    error: failed dependencies:
            binutils >= 2.9.5.0.41 is needed by gcc-2.96-69
            cpp = 2.96 is needed by gcc-2.96-69
            glibc-devel is needed by gcc-2.96-69
  2. Download/install:
    ftp://ftp.rpmfind.net/linux/redhat/7.0/en/os/i386/RedHat/RPMS//binutils-2.10.0.18-1.i386.rpm
    rpm -Uvh binutils-2.10.0.18-1.i386.rpm
  3. Download/install:
    ftp://ftp.rpmfind.net/linux/redhat/updates/7.0/en/os/i386//cpp-2.96-69.i386.rpm
    rpm -Uvh cpp-2.96-69.i386.rpm
  4. Download/install:
    ftp://ftp.rpmfind.net/linux/redhat/7.0/en/os/i386/RedHat/RPMS//glibc-devel-2.1.92-14.i386.rpm
    rpm -Uvh glibc-devel-2.1.92-14.i386.rpm
    error: failed dependencies:
            kernel-headers   is needed by glibc-devel-2.1.92-14
            kernel-headers >= 2.2.1 is needed by glibc-devel-2.1.92-14
  5. Download/install:
    ftp://ftp.rpmfind.net/linux/redhat/7.0/en/os/i386/RedHat/RPMS//kernel-headers-2.4.0-0.26.i386.rpm
    rpm -Uvh kernel-headers-2.4.0-0.26.i386.rpm
  6. Reattempt installation of your already downloaded glibc-devel-2.1.92-14.i386.rpm
    rpm -Uvh glibc-devel-2.1.92-14.i386.rpm
  7. Reattempt installation of your already downloaded gcc-2.96-69.i386.rpm
    rpm -Uvh gcc-2.96-69.i386.rpm

Voila! GCC Should be installed on your RedHat Linux 7.0 system now. Veryifty this by doing 'man gcc'. If it hasn't worked, then your system had some sort of conflict or additional dependancy =\