标签:tst arch pre led ++ too project UI apr
Centos6/7自带的gcc为4.x版本,可通过devtoolset工具集安装gcc5.x版本
[hhorak-devtoolset-4-rebuild-bootstrap2] name=Copr repo for devtoolset-4-rebuild-bootstrap2 owned by hhorak baseurl=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap2/epel-6-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap2/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1
[hhorak-devtoolset-4-rebuild-bootstrap2] name=Copr repo for devtoolset-4-rebuild-bootstrap2 owned by hhorak baseurl=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap2/epel-7-$basearch/ type=rpm-md skip_if_unavailable=True gpgcheck=1 gpgkey=https://copr-be.cloud.fedoraproject.org/results/hhorak/devtoolset-4-rebuild-bootstrap2/pubkey.gpg repo_gpgcheck=0 enabled=1 enabled_metadata=1
yum install devtoolset-4-gcc devtoolset-4-binutils devtoolset-4-gcc-c++
export PATH=/opt/rh/devtoolset-4/root/usr/bin:$PATH
使用gcc -v检查是否配置完成
标签:tst arch pre led ++ too project UI apr
原文地址:https://www.cnblogs.com/xstyle/p/8984778.html