I have a relatively old server with CentOS 6 on it. The default gcc is 4.4.7 but after some googling, I found I can update this via devtoolset-7
. I installed devtoolset-7
via root (i.e. sudo -i
), and it installed okay.
Then I did scl enable devtoolkit-7 bash
but it dosn't seem to do anything.
[affan@abm-lab ~]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 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.
[affan@abm-lab ~]$ scl enable devtoolset-7 bash
[affan@abm-lab ~]$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
Copyright (C) 2010 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.
Does anyone know why scl
is not enabling a sub environment with the proper variables set?