redis编译 报告错误 jemalloc/jemalloc.h:没有那个文件或目录 解决.

问题原因:没找到jemalloc头文件.

百度谷歌半天没找到有效的下载地址. github中有

到github下载.jemalloc

https://github.com/jemalloc/jemalloc/releases

 ./configure &&make &&make install

 这一步很重要

删除刚才解压的redis的源码文件夹.整个删除

重新解压

make &&make install 

enjoy  it!

原文地址:https://www.cnblogs.com/lovesKey/p/10446632.html