Linux Configure Redis make Commands Error [Solved]

An error is reported in the make command for configuring redis on Linux

1. After decompressing the redis file, execute the make command and an error is reported:

Solution:

The reason is that the GCC version of Linux system is too low, and the GCC installed by Yum is 4.8.5.GCC needs to be upgraded

Command line input:

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

Decompress the redis file again

Execute the make command, as shown in the following figure, OK!

Similar Posts: