Keepalived 实现 Redis AutoFailover (RedisHA)2

2022-06-26 14:57:43 浏览数 (1)

报错一

root@temp redis-3.0.4# pwd

/usr/local/src/redis-3.0.4

root@temp redis-3.0.4# make

cd src && make all

make1: Entering directory `/usr/local/src/redis-3.0.4/src'

rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-dump redis-check-aof .o .gcda .gcno .gcov redis.info lcov-html

(cd ../deps && make distclean)

make2: Entering directory `/usr/local/src/redis-3.0.4/deps'

(cd hiredis && make clean) > /dev/null || true

(cd linenoise && make clean) > /dev/null || true

(cd lua && make clean) > /dev/null || true

(cd jemalloc && -f Makefile && make distclean) > /dev/null || true

(rm -f .make-*)

make2: Leaving directory `/usr/local/src/redis-3.0.4/deps'

(rm -f .make-*)

echo STD=-std=c99 -pedantic >> .make-settings

echo WARN=-Wall -W >> .make-settings

echo OPT=-O2 >> .make-settings

echo MALLOC=jemalloc >> .make-settings

echo CFLAGS= >> .make-settings

echo LDFLAGS= >> .make-settings

echo REDIS_CFLAGS= >> .make-settings

echo REDIS_LDFLAGS= >> .make-settings

echo PREV_FINAL_CFLAGS=-std=c99 -pedantic -Wall -W -O2 -g -ggdb -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src -DUSE_JEMALLOC -I../deps/jemalloc/include >> .make-settings

echo PREV_FINAL_LDFLAGS= -g -ggdb -rdynamic >> .make-settings

(cd ../deps && make hiredis linenoise lua jemalloc)

make2: Entering directory `/usr/local/src/redis-3.0.4/deps'

(cd hiredis && make clean) > /dev/null || true

(cd linenoise && make clean) > /dev/null || true

(cd lua && make clean) > /dev/null || true

(cd jemalloc && -f Makefile && make distclean) > /dev/null || true

(rm -f .make-*)

(echo "" > .make-ldflags)

(echo "" > .make-cflags)

MAKE hiredis

cd hiredis && make static

make3: Entering directory `/usr/local/src/redis-3.0.4/deps/hiredis'

gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c

make3: gcc: Command not found

make3: *** net.o Error 127

make3: Leaving directory `/usr/local/src/redis-3.0.4/deps/hiredis'

make2: *** hiredis Error 2

make2: Leaving directory `/usr/local/src/redis-3.0.4/deps'

make1: persist-settings Error 2 (ignored)

代码语言:txt复制
CC adlist.o

/bin/sh: cc: command not found

make1: *** adlist.o Error 127

make1: Leaving directory `/usr/local/src/redis-3.0.4/src'

make: *** all Error 2

root@temp redis-3.0.4# echo $?

2

root@temp redis-3.0.4#

0 人点赞