We are trying to install the redis in red hat linux from source folder, it showing the below mentioned error, please help us resolve the issues.
[@got-lsmsgw01 redis-3.2.12]# make
cd src && make all
make[1]: Entering directory `/apps/softwares/redis-3.2.12/src'
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-rdb red is-check-aof *.o *.gcda *.gcno *.gcov
redis.info lcov-html
(cd ../deps && make distclean)
make[2]: Entering directory `/apps/softwares/redis-3.2.12/deps'
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd geohash-int && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(rm -f .make-*)
make[2]: Leaving directory `/apps/softwares/redis-3.2.12/deps'
(rm -f .make-*)
echo STD=-std=c99 -pedantic -DREDIS_STATIC='' >> .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 -DREDIS_STATIC='' -Wall -W -O2 -g -ggd b -I../deps/geohash-int -I../deps/hiredis -I../deps/linenoise -I../deps/lua/sr c -DUSE_JEMALLOC -I../deps/jemalloc/include >> .make-settings
echo PREV_FINAL_LDFLAGS= -g -ggdb -rdynamic >> .make-settings
(cd ../deps && make hiredis linenoise lua geohash-int jemalloc)
make[2]: Entering directory `/apps/softwares/redis-3.2.12/deps'
(cd hiredis && make clean) > /dev/null || true
(cd linenoise && make clean) > /dev/null || true
(cd lua && make clean) > /dev/null || true
(cd geohash-int && make clean) > /dev/null || true
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true
(rm -f .make-*)
(echo "" > .make-cflags)
(echo "" > .make-ldflags)
MAKE hiredis
cd hiredis && make static
make[3]: Entering directory `/apps/softwares/redis-3.2.12/deps/hiredis'
gcc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-string s -g -ggdb net.c
make[3]: gcc: Command not found
make[3]: *** [net.o] Error 127
make[3]: Leaving directory `/apps/softwares/redis-3.2.12/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/apps/softwares/redis-3.2.12/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/apps/softwares/redis-3.2.12/src'
make: *** [all] Error 2
[@got-lsmsgw01 redis-3.2.12]#