我正在尝试在 Cent OS 中安装最新版本的 g++。我管理的最好的是以下内容:
wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
yum install devtoolset-2-gcc devtoolset-2-binutils
yum install devtoolset-2-gcc-c++ devtoolset-2-binutils
Run Code Online (Sandbox Code Playgroud)
但这会安装 g++ 4.8.2 而不是 4.9.2。有没有办法安装4.9.2?
linux ×1