How to Install gcc on CentOS 6.2

In this post, i will show you on how to install gcc package. The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages. The compiler is designed to support multiple front-ends and multiple back-ends by translating first into Register Transfer Language and from there into assembly code for the target architecture. Assume that you have installed minimal installation type CentOS 6.2 and has setup your own local yum repository. You can use internet CentOS yum repository instead if you have direct internet connection to your server.

Simply run yum command to install the gcc.

[root@centos6 ~]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.4.6-3.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================
 Package       Arch           Version                  Repository                      Size
============================================================================================
Installing:
 gcc           i686           4.4.6-3.el6              CentOS6.2-Repository           8.2 M

Transaction Summary
============================================================================================
Install       1 Package(s)

Total download size: 8.2 M
Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : gcc-4.4.6-3.el6.i686                                                     1/1

Installed:
  gcc.i686 0:4.4.6-3.el6

Complete!