On Sun, 5 Feb 2017, Gordon Messmer wrote:
Yes. Use the software collections.
https://www.softwarecollections.org/en/
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/
There are three ways to utilize SCLs: a temporary subshell invoked with the scl utility, a session-long environment shift by sourcing the package's 'enable' script, or a permanent alteration of your shell profile to include the package's bin/ and lib/ directories.
I outline the first two methods in a blog post you may find helpful:
https://www.madboa.com/blog/2016/08/29/scl-intro/
(There's no advertising on my site and I make no revenue from it.)