Open the terminal and input the command as follow:
wget http://download.redis.io/releases/redis-3.0.0.tar.gzAfter download completed, uncompress the zipped file:
tar xzv -f redis-3.0.0.tar.gzEnter the
redis-3.0.0
folder and excuted the make
command:
cd redis-3.0.0 makeIf the
make
is not found, excute the command below to install it:
sudo apt-get install makeIf the error message shows as below:
/bin/sh: 1: cc: not found make[1]: *** [adlist.o] Error 127 make[1]: Leaving directory `/home/javakid/tools/nosql/redis-3.0.0/src' make: *** [all] Error 2Then installing
build-essential
is needed.
sudo apt-get install build-essentialIf something is missing as the message here:
In file included from adlist.c:34:0: zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/jemalloc.h> ^The solution is to make the lacking file:
cd deps make jemallocGo back to
redis-3.0.0
and execute make
command again.If the error below occured:
cc: error: ../deps/hiredis/libhiredis.a: No such file or directory cc: error: ../deps/lua/src/liblua.a: No such file or directory make[1]: *** [redis-server] Error 1 make[1]: Leaving directory `/home/javakid/tools/nosql/redis-3.0.0/src' make: *** [all] Error 2Just go to the folder
deps
and make the lacking files:
cd deps make hiredis lua jemalloc linenoiseGo back to parent folder and execute the
make
command after the files are made.
cd ../ makeWhen the
make
command is completed, execute the command below to start Redis.
src/redis-server