本人下载的Redis官网上最新版本的Redis,安装在Centos8上,安装过程出现几次错误
首先执行make MALLOC=libc ,报cc: command not found,这个是因为gcc未安装的缘故,
make[3]: Entering directory ‘/root/redis-6.0.10/deps/hiredis’
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -Wno-missing-field-initializers -g -ggdb net.c
make[3]: cc: Command not found
make[3]: *** [Makefile:201: net.o] Error 127
make[3]: Leaving directory ‘/root/redis-6.0.10/deps/hiredis’
make[2]: *** [Makefile:50: hiredis] Error 2
make[2]: Leaving directory ‘/root/redis-6.0.10/deps’
make[1]: [Makefile:283: persist-settings] Error 2 (ignored)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [Makefile:334: adlist.o] Error 127
make[1]: Leaving directory ‘/root/redis-6.0.10/src’
make: *** [Makefile:6: all] Error 2
安装gcc,使用yum intall gcc总是失败,最后使用 yum -y install