By default, GCC is not installed in Red Hat Enterprise Linux. To install GCC, configure the local yum source of Red Hat Enterprise Linux as follows:
1. Mount the CD or USB flash disk of the RHEL6.2 image to a directory, such as/mnt.
Mount/dev/cdrom/mnt
2. Create a new local source file, as shown below:
[Root @ www.bkjia.com ~] # Vim/etc/yum. repos. d/rhel-local.repo
[Rhel-local]
Name = Red Hat Enterprise Linux 6.2
Baseurl = file: // mnt
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // mnt/RPM-GPG-KEY-RedHat-release
3. Clear the yum cache and use yum install to install the software.
Yum clean all # Clear yum Cache
Yum install-y gcc # install gcc
Yum-y install gcc-c ++ # install gcc-c ++
Yum-y install gcc-gfortran # install gfortran
Ubuntu 12.04 embedded cross-compilation environment arm-linux-GCC Build Process Diagram
Install the cross-compiler arm-none-linux-gnueabi-GCC in Ubuntu 12.10
Install and use Vim + GCC + GDB in Ubuntu
Switch two GCC versions in Ubuntu
GCC details: click here
GCC: click here