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:
- Redis service failed to start, prompt: redis server: command not found
- CentOS8 Install redis-6.0.6 make test:“ You need tcl 8.5 or newer in order to run the Redis test“
- How to Solve Redis Error: /bin/sh: cc: command not found
- CentOS Error -bash:systemctl:command not found
- ImportError: /lib64/libc.so.6: version `GLIBC_2.17′ problem solved
- Linux cron has no effect after executing the script, and the log reports an error orphan (no passwd entry)
- /lib64/libstdc++.so.6: version `CXXABI’1.3.8′ not found `36733;
- macos -bash: yarn: command not found/-bash: cnpm: command not found
- Mac open terminal error – bash:: command not found
- About redis WARNING overcommit_ The solution of memory is set to 0