HOWTO use a newer version of gcc
As of December 2020 Opalstack's servers are running CentOS 7 which includes older versions of
gcc and other development tools which may not work for compiling newer software.
If you need to compile software that requires a newer compiler you can enable
gcc version 9 via the
devtoolset-9 software collection.
To do so, run the following command as your shell user:
scl enable devtoolset-9 bash
This will run a new bash session with the newer compiler enabled, eg:
[user@opal1 ~]$ scl enable devtoolset-9 bash [user@opal1 ~]$ gcc --version gcc (GCC) 9.3.1 20200408 (Red Hat 9.3.1-2) Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.