更新gcc_Install gcc 4.7.x/4.8.x on CentOS
来源:互联网 发布:柴鸡蛋网络剧作品 编辑:程序博客网 时间:2024/05/21 15:02
参考一:How to Install gcc 4.7.x/4.8.x on CentOS
参考二:CentOS 升级 gcc 和 g++ 的方法
参考三:linux yum命令详解
参考四:每天一个linux命令之wget命令
1.下载并安装文件
cd /etc/yum.repos.d/wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
或:
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -O /etc/yum.repos.d/devtools-1.1.repo#安装yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++
2. 在此目录之下,查看yum安装之后产生的文件,并设置环境变量
ll /opt/centos/devtoolset-1.1/root/usr/bin/#设置环境变量echo 'export PATH="/opt/centos/devtoolset-1.1/root/usr/bin/:$PATH"' >> ~/.bash_profile
3. 查看版本变化
g++ --version
g++ (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5) Copyright (C) 2012 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.
补充:系统centos 6.3 32位 i386 自带gcc 4.4.6 升级到gcc 4.8
0 0
- 更新gcc_Install gcc 4.7.x/4.8.x on CentOS
- How to Install gcc 4.7.x/4.8.x on CentOS(scl devtools)
- Compiling GCC on OS X
- CentOS 6.X安装GCC
- Cacti on CentOS 4.x
- LDAP User Authentication On CentOS 5.x
- deploy Redis 2.8.x on Centos 6.x
- Centos 6.x 更新内核 2.6->4.13
- Oracle Database 11g Release 2 Installation on RHEL/CentOS 6.x/5.x/4.x
- How to install g++ 4.7.2 & c++11 on CentOS 5.x
- nstall OPAM on Springdale/RHEL/CentOS/SL 5.X
- CentOS ISO to USB on Mac OS X
- Installing Ubiquiti Unifi Controller on CentOS 6.x
- Upgrade Python And Pip On CentOS 6.x
- How to Setup OpenERP (Odoo) on CentOS 7.x
- centos 更新gcc版本
- eclipse 编译 cocos2d-x GCC 4.8 配置
- linux6.x 升级gcc到4.8.2
- webservice编写天气预报功能
- 关于iphone accessory的理解
- Android中实现暗码启动APK【二】
- 从一串字符串中匹配URL地址 正则 (可以没有http或https开头)
- BCD码
- 更新gcc_Install gcc 4.7.x/4.8.x on CentOS
- iOS面试必看,最全梳理(一)
- 12个最好的免费和开源的NoSQL数据库
- 我同意(例子)
- 01ZigBee简介
- elasticsearch5 打开fielddata
- PostGIS查询指定范围的数据
- Google Protocol Buffer 的使用和原理
- AngularJS2 模板语法