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
🌐
Red Hat
developers.redhat.com › blog › 2019 › 06 › 20 › developer-toolset-8-1-and-gcc-8-3-now-available-for-red-hat-enterprise-linux-7
Developer Toolset 8.1 and GCC 8.3 now available for Red Hat Enterprise Linux 7 | Red Hat Developer
March 28, 2023 - GCC 8.3.1 · GDB 8.2 · binutils 2.30 · elfutils 0.176 · Valgrind 3.14.0 · Package name: devtoolset-8 · Container image: rhscl/devtoolset-8-toolchain-rhel7; rhscl/devtoolset-8-perftools-rhel7 · System support: RHEL 7 for x86_64, IBM Z, ...
Discussions

linux - Can not find required gcc version after devtoolset installation - Stack Overflow
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 I try scl enable devtoolset-8 -- bash, it shows More on stackoverflow.com
🌐 stackoverflow.com
yum - Centos 7 gcc 8 installation - Unix & Linux Stack Exchange
Rather than adding it as a yum repo, I used wget to download all of the rpms from here: cbs.centos.org/repos/sclo7-devtoolset-8-rh-candidate/x86_64/os/… into a directory and then I ran yum install *.rpm. I then ran scl enable devtoolset-8 bash to change to GCC 8. More on unix.stackexchange.com
🌐 unix.stackexchange.com
October 23, 2018
How to install GCC/G++ 8 on CentOS - Stack Overflow
Answer didn't work for CentOS7. Attempted scl enable devtoolset-8 -- bash and the bash shell still uses the old gcc/g++. HOWEVER scl enable devtoolset-8 -- gcc --version does work. More on stackoverflow.com
🌐 stackoverflow.com
R: Minimal gcc versions in order to support C++14 and C++17?
Issue On CentOS 7, the built-in dev toolchain provides only: $ gcc --version | head -1 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) which only gives us support for C++11 [1]. More and more R package... More on github.com
🌐 github.com
1
April 23, 2021
🌐
Centos
cbs.centos.org › koji › buildinfo
devtoolset-8-gcc-8.3.1-3.2.el6 | Build Info | CentOS Community Build Service
March 27, 2020 - Main Site Links: · Summary · Packages · Builds · Tasks · Build Targets · Users · Hosts · Reports · Search
🌐
Lsst
pipelines.lsst.io › v › v19_0_0 › install › prereqs › centos.html
RedHat / CentOS system prerequisites — LSST Science Pipelines
New after 18.1: The gcc compiler to be used must support C++ 14. The gcc compiler version used in both Red Hat / CentOS 6 and 7 to verify the LSST Science Pipelines distribution is gcc 8.3.1, provided by devtoolset-8.
Find elsewhere
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › devtoolset-8
Developer Toolset 8 — Software Collections
# 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl available in CentOS repository: $ sudo yum install centos-release-scl # On RHEL, enable RHSCL repository for you system: $ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # 2. Install the collection: $ sudo yum install devtoolset-8 # 3. Start using software collections: $ scl enable devtoolset-8 bash · At this point you should be able to use gcc and other tools just as a normal application.
🌐
Tenable
tenable.com › plugins › nessus › 170353
RHEL 6 / 7 : devtoolset-8-gcc (RHSA-2020:0924)<!-- --> | Tenable®
January 23, 2023 - The remote Redhat Enterprise Linux ... with support for various programming languages, including C, C++, and Fortran. The devtoolset-8-gcc packages provide the Red Hat Developer Toolset version of GCC, as well as related libraries....
🌐
GitHub
github.com › HenrikBengtsson › CBI-software › issues › 16
R: Minimal gcc versions in order to support C++14 and C++17? · Issue #16 · HenrikBengtsson/CBI-software
April 23, 2021 - $ scl enable devtoolset-7 'gcc --version' | head -1 gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5) $ scl enable devtoolset-8 'gcc --version' | head -1 gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3) $ scl enable devtoolset-9 'gcc --version' | head -1 gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2)
Author   HenrikBengtsson
🌐
Red Hat
developers.redhat.com › blog › 2019 › 03 › 05 › yum-install-gcc-8-clang-6
How to install GCC 8 and Clang/LLVM 6 on Red Hat Enterprise Linux 7 | Red Hat Developer
November 1, 2023 - $ su - # subscription-manager repos ... --version clang version 6.0.1 (tags/RELEASE_601/final) $ # Optionally permanently enable GCC 8 / Clang/LLVM 6.0 $ echo "source scl_source enable devtoolset-8 llvm-toolset-6.0" &amp;amp;a...
🌐
Red Hat
developers.redhat.com › blog › 2018 › 11 › 13 › gcc-8-2-ga-rhel
GCC 8.2 now GA for Red Hat Enterprise Linux | Red Hat Developer
March 24, 2023 - We are pleased to announce general availability of Red Hat Developer Toolset 8 for Red Hat Enterprise Linux 6 and 7. The key new components for this release are: GCC 8.2.1 GDB 8.2 Updated components such as SystemTap, Valgrind, OProfile, and ...
🌐
Unraveldata
unravel-docs.unraveldata.com › unravel-v4823 › en › install-gcc-compiler.html
Installing GNU Compiler Collection (GCC)
There are different versions of Developer Toolset collections available. The minimum requirement is devtoolset-8. [unravel@host ~]$ sudo yum install -y devtoolset-8 ... [unravel@host ~]$ scl enable devtoolset-8 bash # C compiler [unravel@host ~]$ gcc --version # C++ compiler [unravel@host ~]$ g++ --version
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Newest 'devtoolset' Questions - Stack Overflow
[root@ ~]# scl ... ... We use devtoolset-10 in CentOS 7 ("Actual" default version of gcc in OS is 4.8.5, but in devtoolset we use 10.2.1 version, which is real actual version for project).