为了查看此集合中包含的各个组件,包括其他开发工具,可以运行
sudo yum list devtoolset-7*
1. Install a package with repository for your system:
On CentOS, install package centos-release-scl available in CentOS repository:
$ sudo yum install centos-release-scl
On RHEL, enable RHSCL repository for you system:
$ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
2. Install the collection:
$ sudo yum install devtoolset-7
3. Start using software collections:
$ scl enable devtoolset-7 bash
CentOS/RHEL 开发环境之 devtoolset.
安装gcc时也需要安装devtoolset-7-runtime
yum install devtoolset-7-runtime
devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-gdb
网友评论