When Linux installs redis, it executes make install and reports an error: Make: * * [server. O] error 1 (solved)

Reason:
the Redis’s official website to download version of the 6.0 version of make the installation
This is because the GCC version is too low. The GCC installed in YUM is 4.8.5. Therefore, GCC needs to be upgraded. The upgrade process is as follows:

yum -y install centos-release-scl

yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils

scl enable devtoolset-9 bash

echo "source /opt/rh/devtoolset-9/enable" >> /etc/profile

gcc -v

Can.


Read More: