Install GCC in RHEL6.2

Source: Internet
Author: User
Tags gfortran
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

Related Article

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.