一.环境:
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]#1.2 前提条件
用户:root用户
网络:有能正常使用的yum 源
二. 安装
[root@host-xxx soft]# yum -y install gcc
[root@host-xxx soft]# yum -y install gcc-c++