GCC(GNU Compiler Collection)是一个开源的编译器套件,由 GNU(GNU's Not Unix!的递归缩写) 项目开发和维护。它是一个功能强大且广泛使用的编译器,支持多种编程语言,包括 C、C++、Objective-C、Fortran、Ada 和其他一些语言。
在 CentOS 上,GCC 是默认的编译器套件,它提供了一组工具和库,用于将源代码编译成可执行程序、库文件或其他目标文件。以下是一些关于 GCC 的重要信息:
GCC 是一个强大而灵活的编译器套件,广泛应用于开发各种类型的应用程序和系统软件。它在 CentOS 中作为默认的编译器,提供了丰富的功能和广泛的语言支持,使开发者能够编译和构建各种项目
很多编译问题的主要原因是当前gcc版本不匹配导致的,升级要求的gcc版本即可解决问题。
要升级 CentOS 上的 GCC 版本,您可以使用以下步骤:
首先,确保您的系统已经更新到最新版本。运行以下命令来更新 CentOS 的软件包列表和已安装软件包:
sudo yum update
这将更新您的系统并安装最新的软件包。
CentOS 提供了一个软件集合,称为 Devtoolset,其中包括较新版本的 GCC。您可以使用以下命令安装 Devtoolset:
sudo yum install centos-release-scl
sudo yum install devtoolset-
安装完成后,使用以下命令启用所安装的 Devtoolset 版本:
scl enable devtoolset- bash
这将在当前终端会话中启用 Devtoolset,将新的 GCC 版本设置为默认。
运行以下命令来验证已安装的 GCC 版本:
gcc --version
如果显示您安装的新版本号,则表示升级成功。
请注意,Devtoolset 提供了较新版本的 GCC,但在使用时需要明确启用。这意味着如果您在新的终端会话中打开一个新的终端窗口,您将不再使用 Devtoolset 提供的 GCC 版本。您可以通过运行 scl enable devtoolset-
此外,升级 GCC 可能会对系统和其他软件包产生影响。确保在升级之前备份重要的数据,并在升级后进行测试,以确保所有应用程序和依赖项仍然正常工作。
[xxx]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[xxx]# yum install devtoolset-11
Loaded plugins: fastestmirror, langpacks, nvidia
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 15 kB 00:00:00
base | 3.6 kB 00:00:00
centos-sclo-rh | 3.0 kB 00:00:00
centos-sclo-sclo | 3.0 kB 00:00:00
cuda-rhel7-x86_64 | 3.0 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
libnvidia-container/x86_64/signature | 833 B 00:00:00
libnvidia-container/x86_64/signature | 2.1 kB 00:00:00 !!!
nvidia-container-runtime/x86_64/signature | 833 B 00:00:00
nvidia-container-runtime/x86_64/signature | 2.1 kB 00:00:00 !!!
nvidia-docker/x86_64/signature | 833 B 00:00:00
nvidia-docker/x86_64/signature | 2.1 kB 00:00:00 !!!
updates | 2.9 kB 00:00:00
cuda-rhel7-x86_64/primary_db | 2.1 MB 00:00:02
Resolving Dependencies
--> Running transaction check
---> Package devtoolset-11.x86_64 0:11.1-2.el7 will be installed
--> Processing Dependency: devtoolset-11-perftools for package: devtoolset-11-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-runtime for package: devtoolset-11-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-toolchain for package: devtoolset-11-11.1-2.el7.x86_64
--> Running transaction check
---> Package devtoolset-11-perftools.x86_64 0:11.1-2.el7 will be installed
--> Processing Dependency: devtoolset-11-systemtap for package: devtoolset-11-perftools-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-valgrind for package: devtoolset-11-perftools-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-oprofile for package: devtoolset-11-perftools-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-dyninst for package: devtoolset-11-perftools-11.1-2.el7.x86_64
---> Package devtoolset-11-runtime.x86_64 0:11.1-2.el7 will be installed
---> Package devtoolset-11-toolchain.x86_64 0:11.1-2.el7 will be installed
--> Processing Dependency: devtoolset-11-gcc for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-gcc-c++ for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-gcc-gfortran for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-binutils for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-gdb for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-strace for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-dwz for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-elfutils for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-ltrace for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-make for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-annobin for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Processing Dependency: devtoolset-11-memstomp for package: devtoolset-11-toolchain-11.1-2.el7.x86_64
--> Running transaction check
---> Package devtoolset-11-annobin-docs.noarch 0:10.38-1.el7 will be installed
---> Package devtoolset-11-binutils.x86_64 0:2.36.1-1.el7.2 will be installed
---> Package devtoolset-11-dwz.x86_64 0:0.14-2.el7 will be installed
---> Package devtoolset-11-dyninst.x86_64 0:11.0.0-1.el7 will be installed
---> Package devtoolset-11-elfutils.x86_64 0:0.185-2.el7 will be installed
--> Processing Dependency: devtoolset-11-elfutils-debuginfod-client(x86-64) = 0.185-2.el7 for package: devtoolset-11-elfutils-0.185-2.el7.x86_64
--> Processing Dependency: devtoolset-11-elfutils-libelf(x86-64) = 0.185-2.el7 for package: devtoolset-11-elfutils-0.185-2.el7.x86_64
--> Processing Dependency: devtoolset-11-elfutils-libs(x86-64) = 0.185-2.el7 for package: devtoolset-11-elfutils-0.185-2.el7.x86_64
--> Processing Dependency: libdw.so.dts.1(ELFUTILS_0.177)(64bit) for package: devtoolset-11-elfutils-0.185-2.el7.x86_64
---> Package devtoolset-11-gcc.x86_64 0:11.2.1-9.1.el7 will be installed
---> Package devtoolset-11-gcc-c++.x86_64 0:11.2.1-9.1.el7 will be installed
--> Processing Dependency: devtoolset-11-libstdc++-devel = 11.2.1-9.1.el7 for package: devtoolset-11-gcc-c++-11.2.1-9.1.el7.x86_64
---> Package devtoolset-11-gcc-gfortran.x86_64 0:11.2.1-9.1.el7 will be installed
--> Processing Dependency: devtoolset-11-libquadmath-devel = 11.2.1-9.1.el7 for package: devtoolset-11-gcc-gfortran-11.2.1-9.1.el7.x86_64
---> Package devtoolset-11-gdb.x86_64 0:10.2-6.el7 will be installed
---> Package devtoolset-11-ltrace.x86_64 0:0.7.91-1.el7 will be installed
---> Package devtoolset-11-make.x86_64 1:4.3-1.el7 will be installed
---> Package devtoolset-11-memstomp.x86_64 0:0.1.5-6.el7 will be installed
---> Package devtoolset-11-oprofile.x86_64 0:1.4.0-2.el7 will be installed
---> Package devtoolset-11-strace.x86_64 0:5.13-3.3.el7 will be installed
---> Package devtoolset-11-systemtap.x86_64 0:4.5-7.el7 will be installed
--> Processing Dependency: devtoolset-11-systemtap-client = 4.5-7.el7 for package: devtoolset-11-systemtap-4.5-7.el7.x86_64
--> Processing Dependency: devtoolset-11-systemtap-devel = 4.5-7.el7 for package: devtoolset-11-systemtap-4.5-7.el7.x86_64
---> Package devtoolset-11-valgrind.x86_64 1:3.17.0-4.el7 will be installed
--> Running transaction check
---> Package devtoolset-11-elfutils-debuginfod-client.x86_64 0:0.185-2.el7 will be installed
---> Package devtoolset-11-elfutils-libelf.x86_64 0:0.185-2.el7 will be installed
---> Package devtoolset-11-elfutils-libs.x86_64 0:0.185-2.el7 will be installed
---> Package devtoolset-11-libquadmath-devel.x86_64 0:11.2.1-9.1.el7 will be installed
---> Package devtoolset-11-libstdc++-devel.x86_64 0:11.2.1-9.1.el7 will be installed
---> Package devtoolset-11-systemtap-client.x86_64 0:4.5-7.el7 will be installed
--> Processing Dependency: devtoolset-11-systemtap-runtime = 4.5-7.el7 for package: devtoolset-11-systemtap-client-4.5-7.el7.x86_64
---> Package devtoolset-11-systemtap-devel.x86_64 0:4.5-7.el7 will be installed
--> Processing Dependency: elfutils-devel for package: devtoolset-11-systemtap-devel-4.5-7.el7.x86_64
--> Running transaction check
---> Package devtoolset-11-systemtap-runtime.x86_64 0:4.5-7.el7 will be installed
---> Package elfutils-devel.x86_64 0:0.176-5.el7 will be installed
--> Processing Dependency: pkgconfig(liblzma) for package: elfutils-devel-0.176-5.el7.x86_64
--> Running transaction check
---> Package xz-devel.x86_64 0:5.2.2-2.el7_9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================================
Installing:
devtoolset-11 x86_64 11.1-2.el7 centos-sclo-rh 5.7 k
Installing for dependencies:
devtoolset-11-annobin-docs noarch 10.38-1.el7 centos-sclo-rh 107 k
devtoolset-11-binutils x86_64 2.36.1-1.el7.2 centos-sclo-rh 6.3 M
devtoolset-11-dwz x86_64 0.14-2.el7 centos-sclo-rh 118 k
devtoolset-11-dyninst x86_64 11.0.0-1.el7 centos-sclo-rh 4.3 M
devtoolset-11-elfutils x86_64 0.185-2.el7 centos-sclo-rh 432 k
devtoolset-11-elfutils-debuginfod-client x86_64 0.185-2.el7 centos-sclo-rh 58 k
devtoolset-11-elfutils-libelf x86_64 0.185-2.el7 centos-sclo-rh 214 k
devtoolset-11-elfutils-libs x86_64 0.185-2.el7 centos-sclo-rh 266 k
devtoolset-11-gcc x86_64 11.2.1-9.1.el7 centos-sclo-rh 32 M
devtoolset-11-gcc-c++ x86_64 11.2.1-9.1.el7 centos-sclo-rh 12 M
devtoolset-11-gcc-gfortran x86_64 11.2.1-9.1.el7 centos-sclo-rh 13 M
devtoolset-11-gdb x86_64 10.2-6.el7 centos-sclo-rh 3.9 M
devtoolset-11-libquadmath-devel x86_64 11.2.1-9.1.el7 centos-sclo-rh 180 k
devtoolset-11-libstdc++-devel x86_64 11.2.1-9.1.el7 centos-sclo-rh 3.6 M
devtoolset-11-ltrace x86_64 0.7.91-1.el7 centos-sclo-rh 134 k
devtoolset-11-make x86_64 1:4.3-1.el7 centos-sclo-rh 515 k
devtoolset-11-memstomp x86_64 0.1.5-6.el7 centos-sclo-rh 443 k
devtoolset-11-oprofile x86_64 1.4.0-2.el7 centos-sclo-rh 1.8 M
devtoolset-11-perftools x86_64 11.1-2.el7 centos-sclo-rh 3.1 k
devtoolset-11-runtime x86_64 11.1-2.el7 centos-sclo-rh 20 k
devtoolset-11-strace x86_64 5.13-3.3.el7 centos-sclo-rh 1.3 M
devtoolset-11-systemtap x86_64 4.5-7.el7 centos-sclo-rh 15 k
devtoolset-11-systemtap-client x86_64 4.5-7.el7 centos-sclo-rh 3.7 M
devtoolset-11-systemtap-devel x86_64 4.5-7.el7 centos-sclo-rh 2.3 M
devtoolset-11-systemtap-runtime x86_64 4.5-7.el7 centos-sclo-rh 437 k
devtoolset-11-toolchain x86_64 11.1-2.el7 centos-sclo-rh 3.3 k
devtoolset-11-valgrind x86_64 1:3.17.0-4.el7 centos-sclo-rh 11 M
elfutils-devel x86_64 0.176-5.el7 base 90 k
xz-devel x86_64 5.2.2-2.el7_9 updates 46 k
Transaction Summary
==========================================================================================================================================================
Install 1 Package (+29 Dependent packages)
Total download size: 99 M
Installed size: 292 M
Is this ok [y/d/N]: y
Downloading packages:
(1/30): devtoolset-11-11.1-2.el7.x86_64.rpm | 5.7 kB 00:00:00
(2/30): devtoolset-11-annobin-docs-10.38-1.el7.noarch.rpm | 107 kB 00:00:00
(3/30): devtoolset-11-dwz-0.14-2.el7.x86_64.rpm | 118 kB 00:00:00
(4/30): devtoolset-11-binutils-2.36.1-1.el7.2.x86_64.rpm | 6.3 MB 00:00:01
(5/30): devtoolset-11-dyninst-11.0.0-1.el7.x86_64.rpm | 4.3 MB 00:00:01
(6/30): devtoolset-11-elfutils-debuginfod-client-0.185-2.el7.x86_64.rpm | 58 kB 00:00:00
(7/30): devtoolset-11-elfutils-0.185-2.el7.x86_64.rpm | 432 kB 00:00:00
(8/30): devtoolset-11-elfutils-libelf-0.185-2.el7.x86_64.rpm | 214 kB 00:00:00
(9/30): devtoolset-11-elfutils-libs-0.185-2.el7.x86_64.rpm | 266 kB 00:00:00
(10/30): devtoolset-11-gcc-c++-11.2.1-9.1.el7.x86_64.rpm | 12 MB 00:00:02
(11/30): devtoolset-11-gcc-gfortran-11.2.1-9.1.el7.x86_64.rpm | 13 MB 00:00:03
(12/30): devtoolset-11-gdb-10.2-6.el7.x86_64.rpm | 3.9 MB 00:00:00
(13/30): devtoolset-11-gcc-11.2.1-9.1.el7.x86_64.rpm | 32 MB 00:00:06
(14/30): devtoolset-11-libquadmath-devel-11.2.1-9.1.el7.x86_64.rpm | 180 kB 00:00:00
(15/30): devtoolset-11-ltrace-0.7.91-1.el7.x86_64.rpm | 134 kB 00:00:00
(16/30): devtoolset-11-make-4.3-1.el7.x86_64.rpm | 515 kB 00:00:00
(17/30): devtoolset-11-libstdc++-devel-11.2.1-9.1.el7.x86_64.rpm | 3.6 MB 00:00:00
(18/30): devtoolset-11-memstomp-0.1.5-6.el7.x86_64.rpm | 443 kB 00:00:00
(19/30): devtoolset-11-perftools-11.1-2.el7.x86_64.rpm | 3.1 kB 00:00:00
(20/30): devtoolset-11-runtime-11.1-2.el7.x86_64.rpm | 20 kB 00:00:00
(21/30): devtoolset-11-oprofile-1.4.0-2.el7.x86_64.rpm | 1.8 MB 00:00:00
(22/30): devtoolset-11-systemtap-4.5-7.el7.x86_64.rpm | 15 kB 00:00:00
(23/30): devtoolset-11-strace-5.13-3.3.el7.x86_64.rpm | 1.3 MB 00:00:00
(24/30): devtoolset-11-systemtap-devel-4.5-7.el7.x86_64.rpm | 2.3 MB 00:00:00
(25/30): devtoolset-11-systemtap-client-4.5-7.el7.x86_64.rpm | 3.7 MB 00:00:00
(26/30): devtoolset-11-systemtap-runtime-4.5-7.el7.x86_64.rpm | 437 kB 00:00:00
(27/30): devtoolset-11-toolchain-11.1-2.el7.x86_64.rpm | 3.3 kB 00:00:00
(28/30): elfutils-devel-0.176-5.el7.x86_64.rpm | 90 kB 00:00:00
(29/30): xz-devel-5.2.2-2.el7_9.x86_64.rpm | 46 kB 00:00:00
(30/30): devtoolset-11-valgrind-3.17.0-4.el7.x86_64.rpm | 11 MB 00:00:01
----------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.4 MB/s | 99 MB 00:00:13
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : devtoolset-11-runtime-11.1-2.el7.x86_64 1/30
Installing : devtoolset-11-elfutils-libelf-0.185-2.el7.x86_64 2/30
Installing : devtoolset-11-elfutils-libs-0.185-2.el7.x86_64 3/30
Installing : devtoolset-11-elfutils-debuginfod-client-0.185-2.el7.x86_64 4/30
Installing : devtoolset-11-elfutils-0.185-2.el7.x86_64 5/30
Installing : devtoolset-11-dyninst-11.0.0-1.el7.x86_64 6/30
Installing : devtoolset-11-binutils-2.36.1-1.el7.2.x86_64 7/30
Installing : devtoolset-11-systemtap-runtime-4.5-7.el7.x86_64 8/30
Installing : devtoolset-11-systemtap-client-4.5-7.el7.x86_64 9/30
Installing : devtoolset-11-strace-5.13-3.3.el7.x86_64 10/30
Installing : devtoolset-11-dwz-0.14-2.el7.x86_64 11/30
Installing : devtoolset-11-gdb-10.2-6.el7.x86_64 12/30
Installing : devtoolset-11-libstdc++-devel-11.2.1-9.1.el7.x86_64 13/30
Installing : 1:devtoolset-11-make-4.3-1.el7.x86_64 14/30
Installing : devtoolset-11-annobin-docs-10.38-1.el7.noarch 15/30
Installing : 1:devtoolset-11-valgrind-3.17.0-4.el7.x86_64 16/30
Installing : devtoolset-11-oprofile-1.4.0-2.el7.x86_64 17/30
Installing : devtoolset-11-ltrace-0.7.91-1.el7.x86_64 18/30
Installing : devtoolset-11-memstomp-0.1.5-6.el7.x86_64 19/30
Installing : xz-devel-5.2.2-2.el7_9.x86_64 20/30
Installing : devtoolset-11-gcc-11.2.1-9.1.el7.x86_64 21/30
Installing : devtoolset-11-gcc-c++-11.2.1-9.1.el7.x86_64 22/30
Installing : devtoolset-11-libquadmath-devel-11.2.1-9.1.el7.x86_64 23/30
Installing : devtoolset-11-gcc-gfortran-11.2.1-9.1.el7.x86_64 24/30
Installing : devtoolset-11-toolchain-11.1-2.el7.x86_64 25/30
Installing : elfutils-devel-0.176-5.el7.x86_64 26/30
Installing : devtoolset-11-systemtap-devel-4.5-7.el7.x86_64 27/30
Installing : devtoolset-11-systemtap-4.5-7.el7.x86_64 28/30
Installing : devtoolset-11-perftools-11.1-2.el7.x86_64 29/30
Installing : devtoolset-11-11.1-2.el7.x86_64 30/30
Verifying : devtoolset-11-strace-5.13-3.3.el7.x86_64 1/30
Verifying : devtoolset-11-dwz-0.14-2.el7.x86_64 2/30
Verifying : xz-devel-5.2.2-2.el7_9.x86_64 3/30
Verifying : devtoolset-11-systemtap-4.5-7.el7.x86_64 4/30
Verifying : elfutils-devel-0.176-5.el7.x86_64 5/30
Verifying : devtoolset-11-elfutils-debuginfod-client-0.185-2.el7.x86_64 6/30
Verifying : devtoolset-11-11.1-2.el7.x86_64 7/30
Verifying : devtoolset-11-gdb-10.2-6.el7.x86_64 8/30
Verifying : devtoolset-11-libstdc++-devel-11.2.1-9.1.el7.x86_64 9/30
Verifying : devtoolset-11-gcc-gfortran-11.2.1-9.1.el7.x86_64 10/30
Verifying : devtoolset-11-perftools-11.1-2.el7.x86_64 11/30
Verifying : 1:devtoolset-11-make-4.3-1.el7.x86_64 12/30
Verifying : devtoolset-11-elfutils-0.185-2.el7.x86_64 13/30
Verifying : devtoolset-11-gcc-c++-11.2.1-9.1.el7.x86_64 14/30
Verifying : devtoolset-11-systemtap-client-4.5-7.el7.x86_64 15/30
Verifying : devtoolset-11-systemtap-runtime-4.5-7.el7.x86_64 16/30
Verifying : devtoolset-11-elfutils-libelf-0.185-2.el7.x86_64 17/30
Verifying : devtoolset-11-toolchain-11.1-2.el7.x86_64 18/30
Verifying : devtoolset-11-libquadmath-devel-11.2.1-9.1.el7.x86_64 19/30
Verifying : devtoolset-11-annobin-docs-10.38-1.el7.noarch 20/30
Verifying : devtoolset-11-gcc-11.2.1-9.1.el7.x86_64 21/30
Verifying : devtoolset-11-runtime-11.1-2.el7.x86_64 22/30
Verifying : 1:devtoolset-11-valgrind-3.17.0-4.el7.x86_64 23/30
Verifying : devtoolset-11-oprofile-1.4.0-2.el7.x86_64 24/30
Verifying : devtoolset-11-ltrace-0.7.91-1.el7.x86_64 25/30
Verifying : devtoolset-11-systemtap-devel-4.5-7.el7.x86_64 26/30
Verifying : devtoolset-11-elfutils-libs-0.185-2.el7.x86_64 27/30
Verifying : devtoolset-11-binutils-2.36.1-1.el7.2.x86_64 28/30
Verifying : devtoolset-11-dyninst-11.0.0-1.el7.x86_64 29/30
Verifying : devtoolset-11-memstomp-0.1.5-6.el7.x86_64 30/30
Installed:
devtoolset-11.x86_64 0:11.1-2.el7
Dependency Installed:
devtoolset-11-annobin-docs.noarch 0:10.38-1.el7 devtoolset-11-binutils.x86_64 0:2.36.1-1.el7.2
devtoolset-11-dwz.x86_64 0:0.14-2.el7 devtoolset-11-dyninst.x86_64 0:11.0.0-1.el7
devtoolset-11-elfutils.x86_64 0:0.185-2.el7 devtoolset-11-elfutils-debuginfod-client.x86_64 0:0.185-2.el7
devtoolset-11-elfutils-libelf.x86_64 0:0.185-2.el7 devtoolset-11-elfutils-libs.x86_64 0:0.185-2.el7
devtoolset-11-gcc.x86_64 0:11.2.1-9.1.el7 devtoolset-11-gcc-c++.x86_64 0:11.2.1-9.1.el7
devtoolset-11-gcc-gfortran.x86_64 0:11.2.1-9.1.el7 devtoolset-11-gdb.x86_64 0:10.2-6.el7
devtoolset-11-libquadmath-devel.x86_64 0:11.2.1-9.1.el7 devtoolset-11-libstdc++-devel.x86_64 0:11.2.1-9.1.el7
devtoolset-11-ltrace.x86_64 0:0.7.91-1.el7 devtoolset-11-make.x86_64 1:4.3-1.el7
devtoolset-11-memstomp.x86_64 0:0.1.5-6.el7 devtoolset-11-oprofile.x86_64 0:1.4.0-2.el7
devtoolset-11-perftools.x86_64 0:11.1-2.el7 devtoolset-11-runtime.x86_64 0:11.1-2.el7
devtoolset-11-strace.x86_64 0:5.13-3.3.el7 devtoolset-11-systemtap.x86_64 0:4.5-7.el7
devtoolset-11-systemtap-client.x86_64 0:4.5-7.el7 devtoolset-11-systemtap-devel.x86_64 0:4.5-7.el7
devtoolset-11-systemtap-runtime.x86_64 0:4.5-7.el7 devtoolset-11-toolchain.x86_64 0:11.1-2.el7
devtoolset-11-valgrind.x86_64 1:3.17.0-4.el7 elfutils-devel.x86_64 0:0.176-5.el7
xz-devel.x86_64 0:5.2.2-2.el7_9
Complete!
[xxx]# scl enable devtoolset-11 bash
(base) [xxx]# gcc --version
gcc (GCC) 11.2.1 20220127 (Red Hat 11.2.1-9)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.