Installing redis is really easy. I have done it on several VM. But on one instance, I am facing the following problem.
[root@server redis-2.4.2]# make
cd src && make all
make[1]: Entering directory `/home/user/redis-2.4.2/src'
MAKE hiredis
make[2]: Entering directory `/home/user/redis-2.4.2/deps/hiredis'
cc -c -std=c99 -pedantic -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
make[2]: cc: Command not found
make[2]: *** [net.o] Error 127
make[2]: Leaving directory `/home/user/redis-2.4.2/deps/hiredis'
make[1]: *** [dependencies] Error 2
make[1]: Leaving directory `/home/user/redis-2.4.2/src'
make: *** [all] Error 2
Is there any other way to install redis?
This means that c compiler is uninstalled, or that it’s not in
$PATH.Try
which cc, this should tell the directory whereccis installed, if it is.Otherwise, you can use your distro repository to install it.
In Ubuntu:
sudo aptitude install build-essential.