Recently while installing redis from source, met with error – zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory . It seems the jemalloc is the dependency which is not allowing redis to compile.
NOTE: We have already install redis 3.0 from source on Ubuntu 14.04 / CentOS 7 / RHEL 7 , where we have written step by step method.
To install redis , given below dependencies are require :
1. jemalloc
2. hiredis
3. lua
4. linenoise
Here, we will install all above dependencies for Redis . Because to address the solution in this post, here we are only writing the steps up to dependencies compilation.
wget http://download.redis.io/releases/redis-3.0.2.tar.gz tar -xvzf redis-3.0.2.tar.gz cd redis-3.0.2 cd deps make hiredis lua jemalloc linenoise
For complete installation steps of Redis, read our this post – Install redis 3.0 from source on Ubuntu 14.04 / CentOS 7 / RHEL 7
The error is due to dirty make files. Cleaning the distribution or removing the unpacked files will fix it
$ make distclean
Thank you Robert,
Your help is much appreciated. Keep doing good work 🙂
Regards
Sharad
Thank you Robert,
That worked!
Regards,
Orlin.