Install it by:

sudo yum install centos-release-scl
sudo yum install devtoolset-4

The first command installs and enables Software Collections Repository on your CentOS machine. That repository provides the devtoolset package.

Answer from 13dimitar on Stack Exchange
🌐
GitHub
github.com › NVIDIA › DALI › issues › 1905
No package devtoolset-4 available. · Issue #1905 · NVIDIA/DALI
April 27, 2020 - When I compile DALI from source (using Docker builder) using PYVER=3.7 CUDA_VERSION=10 ./build.sh, it failed with error No package devtoolset-4 available. What should I do for this? Thanks in advance.
Author   NVIDIA
Discussions

CentOS build fails because of missing devtoolset-4
centos-6.6$ docker-compose build # ... No package devtoolset-4-gcc available. No package devtoolset-4-gcc-c++ available. Error: Nothing to do ERROR: Service 'tf' failed to build: The comman... More on github.com
🌐 github.com
1
November 28, 2018
How to install devtoolset-4 on RHEL Workstation 7.2?
Up to now I have tried with # yum install devtoolset-4 which is the way suggested in all guide I have found. But I get the message: No package devtoolset-4 available. I think is a problem of the so called optional channel. I have enabled the packages of workstation extra, workstation rhn tools ... More on unix.com
🌐 unix.com
0
0
September 8, 2016
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
devtoolset-4-gcc* not available for CentOS 7.9
You can use subscription-manager to register. Loading mirror speeds from cached hostfile * base: mirror.datto.com * centos-sclo-rh: repo.ialab.dsu.edu * centos-sclo-sclo: mirrors.vcea.wsu.edu * extras: ftpmirror.your.org * updates: ftpmirror.your.org No package devtoolset-4-gcc* available. More on community.cisco.com
🌐 community.cisco.com
July 13, 2021
🌐
GitHub
github.com › hadim › docker-tensorflow-builder › issues › 10
CentOS build fails because of missing devtoolset-4 · Issue #10 · hadim/docker-tensorflow-builder
November 28, 2018 - centos-6.6$ docker-compose build # ... No package devtoolset-4-gcc available. No package devtoolset-4-gcc-c++ available. Error: Nothing to do ERROR: Service 'tf' failed to build: The comman...
Author   hadim
🌐
Unix.com
unix.com › linux and unix-like › red hat
How to install devtoolset-4 on RHEL Workstation 7.2? - Red Hat - Unix Linux Community
September 8, 2016 - But I get the message: No package devtoolset-4 available. I think is a problem of the so called optional channel. I have enabled the packages of workstation extra, workstation rhn tools ...
🌐
Cisco Community
community.cisco.com › t5 › tools › devtoolset-4-gcc-not-available-for-centos-7-9 › td-p › 4431796
Solved: devtoolset-4-gcc* not available for CentOS 7.9 - Cisco Community
July 13, 2021 - I strongly suggest you to move to the latest publicly available release 0.8.5.2, which you can find here. It includes YDK installation script, which will take care of all the dependencies needed for your CentOS-7.9 platform. ... The version devtoolset4 mentioned in the system requirements http://ydk.cisco.com/py/docs/getting_started.html#system-requirements is not there ```
🌐
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 ·
Find elsewhere
🌐
Docker Hub
hub.docker.com › r › centos › devtoolset-4-toolchain-centos7
centos/devtoolset-4-toolchain-centos7 - Docker Image
It may happen that the program combiled in the container won't have all the dependencies available. In that case, the Developer Toolset Container Image is supposed to be used as a starting point for users, so they do not need to spin their own container from scratch. Creating a new layer on top of the existing container image can be done by writing a new Dockerfile, that will use this image in the FROM clause. For example to install boost-devel library as a dependency, create the following Dockerfile: FROM rhscl/devtoolset-4-toolchain-rhel7 USER 0 RUN yum install -y --setopt=tsflags=nodocs boost-devel && yum clean all -y USER 1001 Copy
🌐
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
On Red Hat Enterprise Linux 6, devtoolset-7-gcc-debuginfo conflicts with one package: gcc-libraries-debuginfo. As a consequence, if conflicting debuginfo packages are installed, attempts to install Red Hat Developer Toolset can fail with a transaction check error message similar to the following examples: file /usr/lib/debug/usr/lib64/libitm.so.1.0.0.debug from install of gcc-base-debuginfo-4...
🌐
Red Hat
access.redhat.com › errata › RHEA-2015:2046
Redhat
New devtoolset-4 packages are now available as a part of Red Hat Developer Toolset 4.0 for Red Hat Enterprise Linux.
🌐
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
🌐
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 - 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.
🌐
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.
🌐
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 '