RedHatEnterpriseLinux is not installed with GCC by default. To install GCC, the simplest method is to configure the local yum source of RedHatEnterpriseLinux. The steps are as follows: 1. Mount the RHEL6.2 image CD or U disk to a directory, such as:/mntmount/dev/cdrom/mnt2, and then create a local source file, as shown below: [root@www.linuxidc.co
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.linuxidc.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 graphic http://www.linuxidc.com/Linux/2013-06/85902.htm
Ubuntu 12.10 install the cross compiler arm-none-linux-gnueabi-GCC http://www.linuxidc.com/Linux/2013-03/82016.htm
Install and use http://www.linuxidc.com/Linux/2013-01/78159.htm with Vim + GCC + GDB in Ubuntu
Two GCC versions under Ubuntu switch http://www.linuxidc.com/Linux/2012-10/72284.htm
GCC details: Click here
GCC: Click here
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-05/101785.htm