gcc 4.8 安装
01
02
03
04
05
06
07
08
09
10
11
12
13
|
[root@DS-VM-Node239 ~]
# curl -Lks http://www.hop5.in/yum/el6/hop5.repo > /etc/yum.repos.d/hop5.repo
# yum install gcc gcc-g++ -y
# gcc --version
gcc
(GCC) 4.8.2 20131212 (Red Hat 4.8.2-8)
Copyright © 2013 Free Software Foundation,Inc.
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
# g++ --version
g++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8)
|
gcc 4.9 安装
13
14
15
16
17
18
19
20
21
22
23
24
25
# yum install centos-release-scl -y
# yum install devtoolset-3-toolchain -y
# scl enable devtoolset-3 bash
# gcc --version
(GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
Copyright (C) 2014 Free Software Foundation,Inc.
This is
free
software; see the
source
for
copying conditions. There is NO
warranty; not even
for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# g++ --version
g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
|
gcc 5.2 安装
16
# yum install devtoolset-4-toolchain -y
# scl enable devtoolset-4 bash
(GCC) 5.2.1 20150902 (Red Hat 5.2.1-2)
Copyright (C) 2015 Free Software Foundation,211)!important; bottom:auto!important; float:none!important; height:auto!important; left:auto!important; line-height:1.1em!important; overflow:visible!important; position:static!important; right:auto!important; top:auto!important; width:auto!important; direction:ltr!important; display:inline!important; background:none!important">g++ (GCC) 5.2.1 20150902 (Red Hat 5.2.1-2)
#
|