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 &am
You can try somthing like this :
$ wget http://redis.googlecode.com/files/redis-2.4.2.tar.gz
$ tar xzf redis-2.4.2.tar.gz
$ cd redis-2.4.2
$ make
More info : ( http://redis.io/download )
(Ubuntu) I tried it with installing with synaptic package manager in ubuntu. Synaptic can be installed using
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install synaptic
ans after installation, just search for redis and install redis-server. It will install redis-client as well.
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
sudo apt-get install make
sudo apt-get install gcc
sudo apt-get install tcl
sudo apt-get install build-essential
sudo apt-get update
## if there is another error like "fatal error: jemalloc/jemalloc.h: No such file or directory"
## just run "make distclean"
make
make test
make[2]: cc: Command not found
This means that c compiler is uninstalled, or that it's not in $PATH
.
Try which cc
, this should tell the directory where cc
is installed, if it is.
Otherwise, you can use your distro repository to install it.
In Ubuntu: sudo aptitude install build-essential
.
I got myself into similar situation, hope below steps work
make distclean
sudo make
I also use CentOS. You can try this:
$ wget http://download.redis.io/releases/redis-3.0.5.tar.gz
$ tar xzf redis-3.0.5.tar.gz
$ cd redis-3.0.5
$ make MALLOC=libc && make install