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

How to get gcc version >= 8 installed - Oracle Forums
# cat /etc/oracle-release Oracle Linux Server release 7.6# gcc --versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39.0.3)# yum install gccLoaded plugins: langpacks, ulninfoPackage gcc-4.8.5-39.0.3.el7.x... More on forums.oracle.com
🌐 forums.oracle.com
June 5, 2020
Use devtoolset-8 on Centos/RHEL for Node.js 14+
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-c... More on github.com
🌐 github.com
34
March 22, 2020
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
software installation - Install GCC 4.8+ on rhel x86_64 workstation 6 - Unix & Linux Stack Exchange
Since the package is either not available, or using a different name, the first step is to find which is the case. Use · yum list available |grep gcc yum list available |grep devtoolset More on unix.stackexchange.com
🌐 unix.stackexchange.com
🌐
Red Hat
access.redhat.com › discussions › 4351781
Red Hat Customer Portal - Access to 24x7 support and knowledge
Hello! Am trying to download gcc 8.2 for rhel 7.7 using the url below, https://developers.redhat.com/products/developertoolset/hello-world#fndtn-windows · keep getting error message "No package devtoolset-8 available.
🌐
Unraveldata
unravel-docs.unraveldata.com › unravel-v4823 › en › install-gcc-compiler.html
Installing GNU Compiler Collection (GCC)
... # On CentOS 7 and later ... Developer Toolset. There are different versions of Developer Toolset collections available. The minimum requirement is devtoolset-8....
🌐
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.
🌐
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
🌐
Oracle
forums.oracle.com › ords › apexds › post › how-to-get-gcc-version-8-installed-3679
How to get gcc version >= 8 installed - Oracle Forums
June 5, 2020 - # cat /etc/oracle-release Oracle Linux Server release 7.6# gcc --versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39.0.3)# yum install gccLoaded plugins: langpacks, ulninfoPackage gcc-4.8.5-39.0.3.el7.x...
🌐
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 - Enable the rhscl, devtools, and optional software repos. Add the Red Hat Developer Tools key to your system. Use yum to install devtoolset-8 (GCC 8) and llvm-toolset-6.0 (Clang 6).
🌐
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.
🌐
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 - We are pleased to share that Developer Toolset 8.1 with GCC 8.3 is now available and supported on Red Hat Enterprise Linux 7. The Red Hat Developer Toolset 8.1 release includes many enhancements and changes, but here are a few of the highlights: ...
🌐
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+. ... master: https://ci.nodejs.org/job/node-test-commit-linuxone/20203/ (build in progress, but gcc8 ...
Author   nodejs
🌐
Oracle
blogs.oracle.com › linux › getting-started-with-oracle-arm-toolset-8
Getting Started with Oracle Arm Toolset 8 | linux
June 19, 2019 - The devtoolset compilers solve that problem using non-shared linking for library functions that are newer than the 4.8.5 system C++ library. (To be specific: /opt/rh/devtoolset-8/root/usr/lib/gcc/aarch64-redhat-linux/8/libstdc++.so is a linker script that resolves symbols from the v4.8.5 shared library /usr/lib64/libstdc++.so.6 when possible, or from the v8 libstdc++_nonshared.a otherwise.)
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Newest 'devtoolset' Questions - Stack Overflow
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). Command gcc --version ... ... I have installed the devtoolset-10 package on CentOS 7 and run the /opt/rh/devtoolset-10/enable script so that now when I do this: g++ --version I get this: g++ (GCC) 10.2.1 20210130 (Red Hat 10.2.1-...
🌐
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
The devtoolset-version-package_name-debuginfo packages can conflict with the corresponding packages from the base Red Hat Enterprise Linux system or from other versions of Red Hat Developer Toolset. This namely applies to devtoolset-version-gcc-debuginfo, devtoolset-version-ltrace-debuginfo, devtoolset-version-valgrind-debuginfo, and might apply to other debuginfo packages, too.
🌐
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 - Unfortunately gcc v8 is not available yet in https://www.softwarecollections.org/en/scls/?search=devtoolset&policy=&repo=&order_by=-create_date&per_page=10 ... The GNU GCC 8 has been added in the software collections, you can see here how to install it – https://ahelpme.com/linux/centos7/how-to-install-gnu-gcc-8-on-centos-7/ ... Unfortunately, centos7 almost always shows that the package does not exist and the article is invalid.