一.環境:c++
1.1系統:網絡
[root@host-xxxsoft]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.6 (Final)
Release: 6.6
Codename: Final
[root@host-xxx soft]# ip
1.2 前提條件io
用戶:root用戶gcc
網絡:有能正常使用的yum 源gc
二. 安裝yum
[root@host-xxx soft]# yum -y install gccco
[root@host-xxx soft]# yum -y install gcc-c++ script