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 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.

  1. Download/install:
    rpm -Uvh gcc-2.96-69.i386.rpm
    error: failed dependencies:
            binutils >= 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:
    rpm -Uvh binutils-
  3. Download/install:
    rpm -Uvh cpp-2.96-69.i386.rpm
  4. Download/install:
    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:
    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 =\