[root@hadoop01 redis-3.0.0]# make
cd src && make all
make[1]: Entering directory `/usr/local/redis-3.0.0/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)
make[2]: Entering directory `/usr/local/redis-3.0.0/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-*)
make[2]: Leaving directory `/usr/local/redis-3.0.0/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)
make[2]: Entering directory `/usr/local/redis-3.0.0/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
make[3]: Entering directory `/usr/local/redis-3.0.0/deps/hiredis'
gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
make[3]: gcc:command cannot found
make[3]: *** [net.o] error 127
make[3]: Leaving directory `/usr/local/redis-3.0.0/deps/hiredis'
make[2]: *** [hiredis] error 2
make[2]: Leaving directory `/usr/local/redis-3.0.0/deps'
make[1]: [persist-settings] error 2 (igorne)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] error 127
make[1]: Leaving directory `/usr/local/redis-3.0.0/src'
make: *** [all] error 2
prompt GCC and CC command not found
Solutions
yum -y install gcc gcc-c++ libstdc++-devel
Similar Posts:
- CentOS8 Install redis-6.0.6 make test:“ You need tcl 8.5 or newer in order to run the Redis test“
- Redis service failed to start, prompt: redis server: command not found
- Linux Configure Redis make Commands Error [Solved]
- [How to Solve] gcc-4.7.2 cannot compute suffix of object fil…
- On the solution to the puzzling problem of make: * * * no rule to make target ` clean ‘. Stop
- When ffmpeg is used to push streaming, there may be an error: unknown encoder ‘libx264’
- Error in compiling APR util for Linux
- [Solved] Redis Install Error: jemalloc/jemalloc.h: No such file or directory
- PHP extensions Install Error: PHP Startup: Invalid library (maybe not a PHP library) ‘zlib.so’ in Unknown
- zlib.h:no such file or directory