I am using ubuntu, unemployment would have been the past few days, the mood is not very good, ready to review the new knowledge, but you are experiencing a lot of problems during installation redis in.
Perhaps it is their own vegetables.
Ado, say what I encountered a pit.
root@ufive: /us r/sofer/ redis/redis-5.0.7# make
cd src && make all make[1]: Entering directory ' /usr/sofer/ redis/ redis-5.0.7/src
CC adlist.c adlist. c:32:20: fatal error: stdlib.h: No such file or directory cumpilationr tenrilated. Makefile:248: recipe for target 'adlist.o' failed
make[l]: **k [adlist.o] Error 1 make[l]: Leaving directory ' /usr/sofer/ redis/ redis-5.0.7/srcMakefile:6: recipe for target 'all' failed
make: **k [all] Error 2 root@ufive :/us r/sofer/ redis/redis-5.0.7#
solution
The source system into a foreign source uninstall reinstall gcc gcc compiler
- apt remove gcc --卸载gcc
- cd / etc / apt - modify sources.list into a foreign source deb http://archive.ubuntu.com/ubuntu
- apt install gcc - then compile
If you clean up the compiler error message or re-extract the archive to compile redis