reason:
Redis compilation failed before, for example, PKG config plug-in is not installed. This error will be reported when redis compiles again after PKG config is installed, because the cache file remains when the last compilation fails.
Solution:
Clear the residual files before recompiling:
make distclean && make