CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了CentOS 6通过yum安装gcc 4.9 5.2等高版本gcc大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

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 [root@DS-VM-Node239 ~] # yum install gcc gcc-g++

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)
本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;
包括没有适销性和某一专用目的下的适用性担保。
[root@DS-VM-Node211 ~] #

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
@H_489_164@ (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)
copying conditions. There is NO
MERCHANTABILITY or FITnesS FOR A PARTICULAR PURPOSE.
# gfortran --version
GNU Fortran (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
GNU Fortran comes with NO WARRANTY,to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For @H_209_174@more information about these matters,see the file named COPYING
#

大佬总结

以上是大佬教程为你收集整理的CentOS 6通过yum安装gcc 4.9 5.2等高版本gcc全部内容,希望文章能够帮你解决CentOS 6通过yum安装gcc 4.9 5.2等高版本gcc所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。