devtoolset is called gcc-toolset in RHEL8.
The following commands worked for me:
microdnf install -y gcc-toolset-12
scl enable gcc-toolset-12 bash
gcc --version
# gcc (GCC) 12.1.1 20220628 (Red Hat 12.1.1-3)
Answer from Mirko Wf on Stack Overflowrhel8 - How to Install devtoolset 8 in RHEL 8 image - Stack Overflow
dockerfile - Development Tools Group is not available in RedHat 8 Docker Image - Stack Overflow
devtools install on Rhel container
UBI Feedback
devtoolset is called gcc-toolset in RHEL8.
The following commands worked for me:
microdnf install -y gcc-toolset-12
scl enable gcc-toolset-12 bash
gcc --version
# gcc (GCC) 12.1.1 20220628 (Red Hat 12.1.1-3)
According to that article, you can check if you have access to Red Hat Software Collections (RHSCL) by running the following command by the root user:
$ su -
# subscription-manager repos --list | egrep rhscl
If you have, enable necessary software repo and then install devtoolset:
# subscription-manager repos --enable rhel-7-server-optional-rpms
# yum install devtoolset-8
Hi All,
I'm a Red Hat Engineer involved in our Universal Base Image, the freely available and redistributable container images built from Red Hat Enterprise Linux binaries, and the associated program and package repositories. UBI has been available for a while now, and I'm looking to get some feedback on it!
I'd love to hear about how you're using UBI (or why you're not), what your pain points are, what you think would make it better, or what you don't know or understand about it. If you have a moment, let me know in a reply. Happy to answer questions as well.
Thanks!