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
access.redhat.com › solutions › 4402111
How to install devtoolset-8 ? - Red Hat Customer Portal
June 14, 2024 - Where to find the devtoolset-8? where to find the devtoolset-8-toolchain?
Discussions

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
yum - Centos 7 gcc 8 installation - Unix & Linux Stack Exchange
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 devtoolset-8-gcc-gfortran. More on unix.stackexchange.com
🌐 unix.stackexchange.com
October 23, 2018
linux - Can not find required gcc version after devtoolset installation - Stack Overflow
I am using Centos 7 with kernel 3.10.0 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 ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
Softwarecollections
softwarecollections.org › en › scls › rhscl › devtoolset-8
Developer Toolset 8 — Software Collections
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. See examples bellow: $ gcc hello.c $ sudo yum install devtoolset-8-valgrind $ valgrind ./a.out $ gdb ./a.out
🌐
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 devtoolset-8 · yum install devtoolset-7 · yum install devtoolset-6 · yum install devtoolset-4 · yum install devtoolset-3 · Say you want to use Developer Toolset 8, you can run · scl enable devtoolset-10 bash · to invoke a BASH shell with environment variables setup to run ...
🌐
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
Find elsewhere
🌐
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.
🌐
Red Hat
docs.redhat.com › en › documentation › red_hat_developer_toolset › 10 › html › user_guide › chap-red_hat_developer_toolset
Chapter 1. Red Hat Developer Toolset | User Guide | Red Hat Developer Toolset | 10 | Red Hat Documentation
Replace package_name with a space-separated list of packages that you want to install. For example, to install the devtoolset-10-gdb-gdbserver and devtoolset-10-gdb-doc packages:
🌐
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 - Red Hat Developer Toolset delivers GCC, GDB, and a set of complementary development tools for Red Hat Enterprise Linux via two release trains per year. 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.
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Newest 'devtoolset' Questions - Stack Overflow
I have boost 1.73 static libraries (.a) and RHEL devtoolset-10 installed,I do the following steps scl enable devtoolset-10 bash Check the LD_LIBRARY_PATH points to /opt/rh/devtoolset-10/root/usr/...
🌐
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/
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Recently Active 'devtoolset' Questions - Stack Overflow
... To install devtoolset-7.x86_64 on CentOS6 is pretty easy: yum install -y centos-release-scl yum install -y devtoolset-7-toolchain However, i686 is not available for download: http://mirror.centos.org/...
🌐
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 ... A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.
🌐
Stack Overflow
stackoverflow.com › questions › tagged › devtoolset
Highest scored 'devtoolset' questions - Stack Overflow
January 12, 2022 - On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1. I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8" (https://www.softwarecollections.org/...
🌐
Red Hat
bugzilla.redhat.com › show_bug.cgi
1157838 – Impossible to install developer toolset
Red Hat Bugzilla – Bug 1157838 · This site requires JavaScript to be enabled to function correctly, please enable it · Privacy Contact FAQ Legal