This error message is usually caused when you do not have scl-utils installed.
Try doing
yum install scl-utils
Answer from nikoo28 on Stack OverflowFirst time working with SCL so please forgive me. Maybe I'm missing something obvious, I just don't know. I recently deployed an instance of RH8 on AWS. I installed a couple version of Python - Python 3.7 and 3.9.
However when I use the following command I get no results.
root@ip-testmachine : scl list-collections
I thought that by installing the software package yum install <package> it automatically gets added to the SCL manager. Do I have do something else to have them added so I can enable them?
Any help would be appreciated.
I had this problem as well. I don't know why scl was failing to enable the environment, but I was able to get it to load with source /opt/rh/devtoolset-7/enable.
It is because of your settings in .bashrc and/or .bash_profile. scl appends its path to gcc7 before starting your new bash shell, but the path to gcc is default to the old gcc4 again because your .bashrc appends /usr/bin to the path when starting the new bash, and it supersedes the scl settings. The solution is to use the "enable" script directly. That way no further path settings annoy you.