gcc 4.8.2 安装(devtoolset-2)

来源:互联网 发布:手机修改图片软件 编辑:程序博客网 时间:2024/05/29 18:47

补充一下使用devtoolset-2(gcc 4.8.2)的方法:

1)rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern
2)wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

yum makecache #让新增的源生效

3)yum install devtoolset-2-toolchain       yum install devtoolset-2-gcc  devtoolset-2-gcc-c++4)source /opt/rh/devtoolset-2/enable
原创粉丝点击