Since the package is either not available, or using a different name, the first step is to find which is the case. Use

yum list available |grep gcc
yum list available |grep devtoolset

to find whether you have misspelled the package name, or if gcc is available under a different name. Check using yum info for the package. Its description should show the relevant version information.

According to Red Hat's article What gcc versions are available in Red Hat Enterprise Linux?, gcc 4.8 is available for Red Hat Enterprise 7. If you need gcc 4.8 for RHEL 6, you may have to compile it yourself.

Further reading:

  • Installing GCC 4.8.2 on Red Hat Enterprise linux 6.5
  • How to Install gcc 4.7.x/4.8.x on CentOS
  • install latest gcc on rhel 6 x86_64
Answer from Thomas Dickey on Stack Exchange
🌐
Stack Overflow
stackoverflow.com › questions › 51661630 › devtoolset-3-not-found-on-centos-6
centos6 - devtoolset-3 not found on Centos 6 - Stack Overflow
Devtoolset-3 is end-of-life, and the community has not maintained all of its packages. Thus, there are some dependency bugs (Bug 1410152). As a work-around, you can point yum to the older Devtoolset-3 packages here instead, which do not have ...
Discussions

Install Obsolete Devtoolset Collection for CentOS - Stack Overflow
At present time Devtoolset-5 (and ... 7 are available). Nevertheless, this collection can be downloaded as a list of rpm-packages. Is it possible to enable such EOL collections for yum, or maybe there is another way to install them correctly? ... While Devtoolset-3 and 4 are located on the Centos mirror site, yum will not be able to ... More on stackoverflow.com
🌐 stackoverflow.com
linux - Can not find required gcc version after devtoolset installation - Stack Overflow
I am using Centos 7 with kernel 3.10.0 My current gcc version is 4.8.5 and I am trying to install gcc 7 or later versions. I have followed instructions from How to install GCC/G++ 8 on CentOS When ... More on stackoverflow.com
🌐 stackoverflow.com
Install devtoolset-7 on Rocky
I recently changed from CentOS 7 (GCC version 7.3.1.) to Rocky 8.5 (GCC version 8.5.0). When I compile C++ code with GCC on Rocky and want to execute it on another system with CentOS 7 I get the following errors: ./program: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required ... More on forums.rockylinux.org
🌐 forums.rockylinux.org
9
0
January 13, 2022
CentOS 6 and Devtoolset-3 - Unix & Linux Stack Exchange
Trying to install C++ from Devtoolset-3 to my CentOS6 system I've ran into dependencies problem: bash-4.2# yum install devtoolset-3-gcc-c++ Loaded plugins: fastestmirror Loading mirror speeds from More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1825374 – devtoolset-3-gcc no longer available
Red Hat Bugzilla – Bug 1825374 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal
🌐
Abysm
blog.abysm.org › 2016 › 03 › installing-developer-toolset-rhel-based-distributions
Installing Developer Toolset on RHEL-based Distributions · Kuan-Yi Li's Blog
March 25, 2016 - yum install "http://ftp.scientificlinux.org/linux/scientific/6/external_products/softwarecollections/yum-conf-softwarecollections-2.0-1.el6.noarch.rpm" Install the version(s) of your choice. Yes, they can co-exist. yum install devtoolset-10 · yum install devtoolset-9 · yum install devtoolset-8 · yum install devtoolset-7 · yum install devtoolset-6 · yum install devtoolset-4 · yum install devtoolset-3 ·
🌐
Red Hat
access.redhat.com › solutions › 2573151
Error: Package: devtoolset-3 Requires: mvn - Red Hat Customer Portal
September 26, 2016 - No translations currently exist. ... Error: Package: devtoolset-3-lucene-solr-grandparent-4.8.0-3.el7.noarch (rhel-server-rhscl-7-rpms) Requires: mvn(org.apache:apache) Error: Package: devtoolset-3-lucene-replicator-4.8.0-3.el7.noarch (rhel-server-rhscl-7-rpms) Requires: mvn(org.eclipse.jetty:jetty-servlet) Error: Package: devtoolset-3-lucene-solr-grandparent-4.8.0-3.el7.noarch (rhel-server-rhscl-7-rpms) Requires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) Error: Package: devtoolset-3-jsch-0.1.50-5.6.el7.noarch (rhel-server-rhscl-7-rpms) Requires: jzlib >= 1.0.5 Error: Package: devtoo
Find elsewhere
🌐
Red Hat
access.redhat.com › discussions › 3104201
Red Hat Customer Portal - Access to 24x7 support and knowledge
However 'yum search devtoolset' yields no results, and 'yum install devtoolset-6' fails with "No package devtoolset-6 available".
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 9 › html › 9.0_release_notes › dts9.0_release
Chapter 2. Red Hat Developer Toolset 9.0 Release | 9.0 Release Notes | Red Hat Developer Toolset | 9 | Red Hat Documentation
However, if the Red Hat Software ... the Red Hat Developer Toolset 3.x version, which is still available in the repository. To work around this problem, exclude this package while updating: ... When the user attempts to start the devtoolset-9-stap-server service, an SELinux ...
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 10 › html › user_guide › chap-red_hat_developer_toolset
Chapter 1. Red Hat Developer Toolset | User Guide | Red Hat Developer Toolset | 10 | Red Hat Documentation
To install all components that are included in Red Hat Developer Toolset, install the devtoolset-10 package: ... This installs all development, debugging, and performance monitoring tools, and other dependent packages to the system. Alternatively, you can choose to install only a selected package group as described in Section 1.5.2, “Installing Individual Package Groups”. ... Note that since Red Hat Developer Toolset 3.0, the scl-utils package is not a part of Red Hat Developer Toolset, which is a change from preceding versions where the scl utility was installed along with the Red Hat Developer Toolset software collection.
🌐
Red Hat
access.redhat.com › solutions › 1269573
How can I get Developer Toolset 3? - Red Hat Customer Portal
August 5, 2024 - Running yum install devtoolset-3 says that No Packages are available, even with Red Hat Software Collections and Developer Toolset subscription.
🌐
Red Hat
access.redhat.com › solutions › 5737761
Where are the devtoolset packages in Red Hat Enterprise Linux 8 - Red Hat Customer Portal
RHEL 8 does not have devtoolset packages available There is no Software Collections repository for RHEL 8 to access devtoolset packages
🌐
LinuxQuestions.org
linuxquestions.org › questions › red-hat-31 › yum-install-repeatedly-fails-for-packages-that-i-know-must-exist-4175510750
yum install repeatedly fails for packages that I know must exist
July 10, 2014 - sudo yum install [thing] keeps being unable to find the package I'm looking for. This includes simple things like 'sl', things like 'virtualenv', and '
🌐
Ahelpme
ahelpme.com › home › linux › centos 7 › how to install new gcc and development tools under centos 7
How to install new gcc and development tools under CentOS 7 | Any IT here? Help Me!
September 5, 2019 - Because using such a package with multiple complex packages you must configure multiple environment and links to the versions you installed replacing the ones from your base system, but the package comes with a handy tool, which executing it will configure everything and you are ready to go! ... And you’ll be in a bash environment, which is configured for GNU GCC 7. [srv@local ~]# scl enable devtoolset-7 bash [srv@local ~]# which gcc /opt/rh/devtoolset-7/root/usr/bin/gcc [srv@local ~]# gcc --version gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) Copyright (C) 2017 Free Software Foundation, Inc.
🌐
Rocky Linux Forum
forums.rockylinux.org › rocky linux help & support
Install devtoolset-7 on Rocky - Rocky Linux Help & Support - Rocky Linux Forum
January 13, 2022 - I recently changed from CentOS 7 (GCC version 7.3.1.) to Rocky 8.5 (GCC version 8.5.0). When I compile C++ code with GCC on Rocky and want to execute it on another system with CentOS 7 I get the following errors: ./program: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./program) ./program: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by ./program) ./program: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./program) ./program: ...
🌐
Stack Exchange
unix.stackexchange.com › questions › 266065 › centos-6-and-devtoolset-3
CentOS 6 and Devtoolset-3 - Unix & Linux Stack Exchange
$ repoquery --whatprovides 'libmpfr.so.1()(64bit)' mpfr-0:2.4.1-6.el6.x86_64 $ repoquery --whatprovides 'libgmp.so.3()(64bit)' gmp-0:4.3.1-7.el6_2.2.x86_64 · If yum can't see them, it is possible that are excluding them in the yum configuration. ... No that is default install and I didn't do anything w/ yum configs... ... Something is different on your machine from "default". I just spun up a CentOS 6 docker container, installed centos-release-scl, then installed devtoolset-3-gcc-c++ without issue.
🌐
Posit Support
support.posit.co › hc › en-us › articles › 360006145413-Posit-Workbench-with-devtoolset-enabled
Posit Workbench with devtoolset enabled – Posit Support
January 24, 2025 - system("gcc --version") Example output: gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2) Copyright (C) 2019 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. If you're using the Job Launcher to launch non-local sessions (using Slurm or Kubernetes), devtoolset will need to be installed and enabled wherever the sessions are running as well.