CentOS 6 升级安装gcc 4.8
2017-10-08 16:57
447 查看
1. 导入CERN’s GPG key
rpm --import http://linuxsoft.cern.ch/cern/slc68/x86_64/RPM-GPG-KEY-cern[/code]2. 添加slc6-devtoolset yum源
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo[/code]3. 安装devtoolset-2
yum install devtoolset-24. 生效devtoolset-2
source /opt/rh/devtoolset-2/enable
可以将此命令写入.bashrc中,以免每次手动执行echo 'source /opt/rh/devtoolset-2/enable' >> ~/.bashrc
差不多完成了,验证一下gcc版本:$ gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) ...
相关文章推荐
- centos 6 gcc升级4.7/4.8
- centos 傻瓜式安装/升级GCC 4.7
- centos 6.6 通过 yum 升级gcc到4.7/4.8
- Linux之CentOS 6通过yum安装gcc 4.8版本gcc
- CentOS 6.4中升级编译安装GCC 4.8.1 + GDB 7.6.1 + Eclipse 以及Kdump配置
- 在centos上安装gcc 4.8
- CentOS 升级编译安装GCC 4.8.1 + GDB 7.6.1 + Vim的简单配置(Taglist、WinManager插件)
- CentOS 6.x安装gcc 4.8/4.9/5.2
- centos6.4安装及升级gcc 4.8.2(已实践)
- CentOS6 升级gcc:源码编译安装gcc4.6和gcc4.8
- centos 6.5 gcc g++ 升级至 4.8+
- Centos6.0 通过devtoolset-2工具安装gcc 4.8
- 超简单!!centos 6离线源码编译安装升级gcc、binutils、automake、autoconf
- CentOS6.5升级手动安装GCC4.8.2 与 CentOS 6.4 编译安装 gcc 4.8.1
- centos升级gcc到4.8
- CentOS 6.5 升级gcc到4.8 以及libstdc++
- CENTOS 6 通过YUM升级GCC到4.7和4.8
- CentOS6.5升级手动安装GCC4.8.2
- [Centos]升级安装GCC
- centos通过 yum 升级gcc到4.7/4.8