在centos上安装gcc 4.8
2015-03-13 10:37
477 查看
cetos太不友好了,居然不能直接yum安装gcc4.8,用make安装又出现了诸多问题,也不知道是因为我装了clang的原因还是怎么样,还好找到了这个方法,大赞!!
solution reference: http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos
# cd /etc/yum.repos.d
# wget http://people.centos.org/tru/devtools-2/devtools-2.repo
# yum --enablerepo=testing-devtools-2-centos-6 install devtoolset-2-gcc devtoolset-2-gcc-c++
solution reference: http://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centos
# cd /etc/yum.repos.d
# wget http://people.centos.org/tru/devtools-2/devtools-2.repo
# yum --enablerepo=testing-devtools-2-centos-6 install devtoolset-2-gcc devtoolset-2-gcc-c++
This will install it most likely into /opt/rh/devtoolset-2/root/usr/bin/ Then : # cd /usr/bin # ln -s /opt/rh/devtoolset-2/root/usr/bin/gcc gcc # ln -s /opt/rh/devtoolset-2/root/usr/bin/g++ g++ # ln -s /opt/rh/devtoolset-2/root/usr/bin/cc cc # ln -s /opt/rh/devtoolset-2/root/usr/bin/cpp cpp Now get the gcc version # gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. Tips: don't forget to yum clean all before doing the steps again after failure else you will still get 404
相关文章推荐
- CentOS 4.8 下手动安装 GCC4.5.0
- Linux之CentOS 6通过yum安装gcc 4.8版本gcc
- CentOS 编译安装gcc 4.8 为了支持C++11新特性
- Centos6.0 通过devtoolset-2工具安装gcc 4.8
- Centos6.0 通过devtoolset-2工具安装gcc 4.8
- CentOS 6.x安装gcc 4.8/4.9/5.2
- CentOS 通过yum安装gcc 4.8, 4.9, 5.2等高版本GCC
- CentOS 6 升级安装gcc 4.8
- centos5.2 上安装gcc步骤
- centos安装gcc
- CentOS 5.5 手工安装最新 GCC
- CentOS 6.0 gcc-c++ 光盘安装
- 以CentOS下安装gcc和启动ssh
- CentOS6.0 安装gcc-c++
- centos 安装gcc编译环境
- Linux( CentOs 4.8) 下安装Oracle11gR2
- Install GCC into CentOS (为CentOS安装GCC)
- CentOS 4.8 安装 Oacle 10g
- CentOS5.5 安装gcc与g++步骤
- 更新CentOS安装gcc遇到的一个问题