The installation of a new version of Redis reports an error, as follows:

Current gcc version:

Upgrade gcc version:
yum -y install centos-release-scl
yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils
scl enable devtoolset-9 bash
Install again using make