CentOS6.2 install gcc-c ++

Source: Internet
Author: User
CentOS6 install gcc-c ++ yum installation method yum-yinstallgccyum-yinstallgcc-c ++ CentOS6.0gcc-c ++ CD installation method (enter the root user) put the system disk into the optical drive automatic installation script: #! /Bin/B

How to install gcc-c ++ yum on CentOS6

Yum-y install gcc
Yum-y install gcc-c ++

CentOS 6.0 gcc-c ++ CD installation method (enter the root user)
Put the system disk into the optical drive
Automatic installation script:

#! /Bin/bash
# Mount/dev/sr0/media
Cd/media/CentOS_6.2_Final/Packages
Rpm-ivh glibc-common-2.12-1.47.el6.i686.rpm
Rpm-ivh kernel-headers-2.6.32-220.el6.i686.rpm
Rpm-ivh libgcc-4.4.6-3.el6.i686.rpm
Rpm-ivh glibc-2.12-1.47.el6.i686.rpm
Rpm-ivh mpfr-2.4.1-6.el6.i686.rpm
Rpm-ivh cpp-4.4.6-3.el6.i686.rpm
Rpm-ivh libgomp-4.4.6-3.el6.i686.rpm
Rpm-ivh nscd-2.12-1.47.el6.i686.rpm
Rpm-ivh glibc-headers-2.12-1.47.el6.i686.rpm
Rpm-ivh glibc-devel-2.12-1.47.el6.i686.rpm
Rpm-ivh ppl-0.10.2-11.el6.i686.rpm
Rpm-ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
Rpm-ivh gcc-4.4.6-3.el6.i686.rpm
Echo "gcc is installed successful !! "


Rpm-ivh libstdc ++-4.4.6-3. el6.i686. rpm
Rpm-ivh libstdc ++ devel-4.4.6-3.el6.i686.rpm
Rpm-ivh gcc-c ++-4.4.6-3. el6.i686. rpm
Echo "gcc-c ++ is installed successful !! "

[Root @ wenp] # chmod + x gcc_install.sh
[Root @ wenp] #./gcc_install.sh

Note that in the above script, the rpm Package has different names for different minor versions of the OS, and must be adjusted by yourself.

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.