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 Overflowdevtoolset 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
Use devtoolset-8 on Centos/RHEL for Node.js 14+
RHEL 8.10 devtoolset-12
What is the backwards comptability of devtoolsets between OS versions?
linux - How to install gcc8 using devtoolset-8-gcc - Stack Overflow
Hi,
The company I work for is developing a software package that is distributed to users. We made a linux port available last year and we're starting to run in to compatibility issues with different versions glibc/libstdc++, especially as we start moving to newer versions of gcc/g++. It seems like devtoolset will solve our problem, but I have a question about it which is this:
If we start using devtoolset-8 on centos 8, will our binaries work on centos 7?
If not, since devtoolset-8 is available on centos 7, can I use docker to build my distrutables on CentOS 7 with devtoolset-8 with the expectation that the automated tests will equally succceed on Centos 7?
Thanks for reading,
We're currently on ubuntu and we're looking to switch to centos 8.
To install the full tools-set including gfortran on centos 7:
yum install centos-release-scl
yum install devtoolset-8
scl enable devtoolset-8 -- bash
enable the tools:
source /opt/rh/devtoolset-8/enable
you may wish to put the command above in .bash_profile
ref: https://unix.stackexchange.com/questions/477360/centos-7-gcc-8-installation
devtoolset-8 was only released a short while ago. The linked installation instructions may be of use. However, your question pertains to CentOS, and this does not yet appear to have been made available yet. You can see some evidence of it being build for CentOS here, but it's not been updated for the final release yet.
You could ask on the SCL mailing list for an ETA, or wait until it appears in its final form. In the meantime, you could download the RPMs from koji directly.
On CentOS I can do yum install devtoolset-8 followed by scl enable devtoolset-8 bash so that my paths are setup to use GCC et al packaged with that development toolset.
Is there an equivalent in AlmaLinux?