I would like to know how to install devtoolset on RHEL7 workstation. I found instructions for RHEL7 server which I have failed to adjust correctly for the workstation edition. I also found instructions for CentOS7 which work for CentOS7:
sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
which gcc
gcc --version
I cannot find devtoolset in any of the repos for RHEL7 workstation i.e. using:
>yum search --enablerepo=\* devtoolset
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Warning: No matches found for: devtoolset
No matches found
>yum search --enablerepo=\* scl
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
...
scl-utils.x86_64 : Utilities for alternative packaging
scl-utils
installs the scl
tool but not the devtoolset software collection itself.
Context: I need to install gcc5 or later for template parameter support. However, I want to use the standard libstdc++ and ABI. In fact I have had later versions of gcc self-compiled for RHEL7 for many years. These however use a later version of libstdc++ and the 'new' ABI (see Forcing or preventing use of a particular minor version of libstdc++). I do not wish to do that for this case and I want to follow proper 'vendor' instructions rather than compiling from source.
yum-config-manager --enable rhel-server-rhscl-7-rpms
gist.github.com/rafaeltuelho/da36249ec55e695787b1 – Lagoon--enable rhel-server-rhscl-7-rpms
means "enable the file server with the devtoolset repo" that you are asking about → → #58009238 – Lagoon