Install GCC in RHEL6.2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.