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

Answer from Karl Tarbet on Stack Overflow
Discussions

yum - Centos 7 gcc 8 installation - Unix & Linux Stack Exchange
yum install centos-release-scl ... enable devtoolset-8 -- bash · It's explained in a little more detail in this answer on StackOverflow: How to install GCC/G++ 8 on CentOS. And of course, if you need GFortran, you can install it in the same way - the package is ... More on unix.stackexchange.com
🌐 unix.stackexchange.com
October 23, 2018
linux - Can not find required gcc version after devtoolset installation - Stack Overflow
If I run yum list installed | grep devtoolset, it shows packages related to devtoolset-8 and devtoolset-7. But I can not switch to gcc 7 or 8 because of that previous error. If I run scl enable devtoolset-9 -- bash, it does not change to the gcc version, stays at the default gcc. More on stackoverflow.com
🌐 stackoverflow.com
Installing devtoolset-X
$ sudo dnf search toolset Last metadata expiration check: 2:26:13 ago on Mon 15 Nov 2021 05:10:30 AM EST. ============================================= Name & Summary Matched: toolset ==== gcc-toolset-10.x86_64 : Package that installs gcc-toolset-10 gcc-toolset-10-runtime.x86_64 : Package that handles gcc-toolset-10 Software Collection. gcc-toolset-11.x86_64 : Package that installs gcc-toolset-11 gcc-toolset-11-runtime.x86_64 : Package that handles gcc-toolset-11 Software Collection. gcc-toolset-9.x86_64 : Package that installs gcc-toolset-9 gcc-toolset-9-runtime.x86_64 : Package that handles gcc-toolset-9 Software Collection. So do dnf-install gcc-toolset-X, then scl enable devtoolset-X bash More on reddit.com
🌐 r/AlmaLinux
1
7
November 14, 2021
rhel8 - How to Install devtoolset 8 in RHEL 8 image - Stack Overflow
Please help me to install dev toolset-8 in rhel 8 image. i have pulled the base image as below . I want to install devtoolset-8. is there any other way please let me know. sudo docker pull registry. More on stackoverflow.com
🌐 stackoverflow.com
🌐
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
🌐
Unraveldata
unravel-docs.unraveldata.com › unravel-v4823 › en › install-gcc-compiler.html
Installing GNU Compiler Collection (GCC)
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Permanently enable an SCL or persist it after a reboot/logout. Add the following in the unravel user’s bash_profile or bashrc: [unravel@host ~]$ su - unravel [unravel@host ~]$ echo 'source scl_source enable devtoolset-8' >> ~/.bashrc
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › devtoolset-8
Developer Toolset 8 — Software Collections
Based on big demand, there are also aarch64 builds of devtoolset-8 packages available on buildroot (testing repository at this point). To install it on your aarch64 machine, run: $ sudo yum install centos-release-scl-rh $ sudo yum-config-manager --enable centos-sclo-rh-testing $ sudo yum install devtoolset-8
🌐
LinuxQuestions.org
linuxquestions.org › questions › red-hat-31 › devtoolset-4175659144
Devtoolset
August 14, 2019 - Hello! Am trying to download gcc 8.2 for rhel 7.7 using the url below, https://developers.redhat.com/produc...#fndtn-windows keep getting error
Find elsewhere
🌐
GitHub
github.com › nodejs › build › issues › 2242
Use devtoolset-8 on Centos/RHEL for Node.js 14+ · Issue #2242 · nodejs/build
March 22, 2020 - Requires access to the release machines. Install devtoolset-8 on the Centos/RHEL machines and use it to build releases for Node.js 14+. Refs: #2168 Install devtoolset-8 on centos7: release-osuosl-centos7-ppc64_le-1 test-osuosl-centos7-pp...
Author   nodejs
🌐
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 ·
🌐
Oracle
blogs.oracle.com › linux › getting-started-with-oracle-arm-toolset-8
Getting Started with Oracle Arm Toolset 8 | linux
June 19, 2019 - If you want to use GCC v8, you will see 2 package sets at Oracle Linux 7 Software Collections: devtoolset-8-gcc-8.2.1-3.el7.aarch64.rpm devtoolset-8-gcc-c++-8.2.1-3.el7.aarch64.rpm devtoolset-8-gcc-gdb-plugin-8.2.1-3.el7.aarch64.rpm .
🌐
GitHub
github.com › nealef › clefos › issues › 8
yum install -y devtoolset-10-binutils ... is failing · Issue #8 · nealef/clefos
July 24, 2021 - Loaded plugins: fastestmirror, ... Error: Package: devtoolset-10-libstdc++-devel-10.2.1-2.1.el7.s390x (clefos-rh) Requires: devtoolset-10-runtime You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest · It thus seems that devtoolset-10-runtime is missing from the repo. Furthermore, looking at the current version in CentOS 7, those are not the same (I understand there can be some delay between availability in CentOS ...
Author   nealef
🌐
Rocky Linux Forum
forums.rockylinux.org › rocky linux help & support
Devtoolset for Rocky Linux - Rocky Linux Help & Support - Rocky Linux Forum
September 9, 2021 - So we can use “Development Tools” from future e.g. Rocky 10.4 on Rocky 8.4 without upgrading the OS. – devtoolset: GNU Compiler Collection, GNU Debugger, and other development, debugging, and performance monitoring tools https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/
🌐
Reddit
reddit.com › r/centos › what is the backwards comptability of devtoolsets between os versions?
r/CentOS on Reddit: What is the backwards comptability of devtoolsets between OS versions?
November 27, 2019 -

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.

🌐
Developer Community
developercommunity.visualstudio.com › t › linux-supportguide-for-redhat-devtoolset › 1617987
Linux Support/Guide for RedHat devtoolset
Skip to main content · Microsoft · Visual Studio · Sign in · You need to enable JavaScript to run this app · Sorry this browser is no longer supported · Please use any other modern browser like 'Microsoft Edge'