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.
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