博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux之CentOS 6通过yum安装gcc 4.9 5.2等高版本gcc
阅读量:7136 次
发布时间:2019-06-28

本文共 2409 字,大约阅读时间需要 8 分钟。

gcc 4.8 安装

[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++ -y[root@DS-VM-Node239 ~]# gcc --versiongcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8)Copyright © 2013 Free Software Foundation, Inc.本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;包括没有适销性和某一专用目的下的适用性担保。[root@DS-VM-Node239 ~]# g++ --versiong++ (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8)Copyright © 2013 Free Software Foundation, Inc.本程序是自由软件;请参看源代码的版权声明。本软件没有任何担保;包括没有适销性和某一专用目的下的适用性担保。[root@DS-VM-Node211 ~]#

gcc 4.9 安装

[root@DS-VM-Node239 ~]# yum install centos-release-scl -y[root@DS-VM-Node239 ~]# yum install devtoolset-3-toolchain -y[root@DS-VM-Node239 ~]# scl enable devtoolset-3 bash[root@DS-VM-Node239 ~]# gcc --versiongcc (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 NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@DS-VM-Node239 ~]# g++ --versiong++ (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 NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@DS-VM-Node239 ~]# gfortran --versionGNU Fortran (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)Copyright (C) 2014 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law.You may redistribute copies of GNU Fortranunder the terms of the GNU General Public License.For more information about these matters, see the file named COPYING

gcc 5.2 安装

[root@DS-VM-Node239 ~]# yum install centos-release-scl -y[root@DS-VM-Node239 ~]# yum install devtoolset-4-toolchain -y[root@DS-VM-Node239 ~]# scl enable devtoolset-4 bash[root@DS-VM-Node239 ~]# gcc --versiongcc (GCC) 5.2.1 20150902 (Red Hat 5.2.1-2)Copyright (C) 2015 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@DS-VM-Node239 ~]# g++ --versiong++ (GCC) 5.2.1 20150902 (Red Hat 5.2.1-2)Copyright (C) 2015 Free Software Foundation, Inc.This is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [root@DS-VM-Node239 ~]#

 

转载地址:http://lmcrl.baihongyu.com/

你可能感兴趣的文章
看看苹果面试提的44个奇葩问题,你能回答出几个
查看>>
EXTRONICS推出IRFID500便携式UHF RFID读写器
查看>>
澳大利亚CIO普遍倾向于云计算
查看>>
Android学习笔记之如何对应用进行单元测试
查看>>
疏重于堵 如何应对网络爬虫流量很重要
查看>>
CYQ.Data V5 分布式缓存MemCached应用开发介绍
查看>>
微软称Win10史上最安全 黑客18秒攻破打脸
查看>>
自相矛盾:一个进程可以自成死锁么?
查看>>
ASP.NET 5 已终结,迎来 ASP.NET Core 1.0 和 .NET Core 1.0
查看>>
《精通LabVIEW虚拟仪器程序设计与案例实现》一1.1 LabVIEW与G语言
查看>>
《思科UCS服务器统一计算》一2.4 Intel微架构
查看>>
Android Studio 优秀插件汇总
查看>>
《数据结构与抽象:Java语言描述(原书第4版)》一1.3 使用ADT包
查看>>
How to Quickly Implement Nginx-based Website Monitoring
查看>>
两个漏洞可让十亿安卓手机被获取 Root 权限?
查看>>
《数据库原理与应用(第3版)》——2.5 数据库管理系统
查看>>
Google 准备测试能抵抗量子计算机破解的加密算法
查看>>
《Python数据分析与挖掘实战》一3.3 Python主要数据探索函数
查看>>
《图解CSS3:核心技术与案例实战》——2.2节基本选择器
查看>>
《OSPF网络设计解决方案(第2版)》一1.7 为何需要VLSM和CIDR
查看>>