对于redis安装的这个错误,网上大部分文章的对这个问题的解答都是有误的。所以在这里单列出来。
错误内容:
jemalloc/jemalloc.h: No such file or directory。 image
文档
针对这个错误,我们可以在README.md 文件中看到解释。
Selecting a non-default memory allocator when building Redis is done
by setting theMALLOC
environment variable. Redis is compiled and
linked against libc malloc by default, with the exception of jemalloc
being the default on Linux systems. This default was picked because
jemalloc has proven to have fewer fragmentation problems than libc
malloc.To force compiling against libc malloc, use:
% make MALLOC=libc
To compile against jemalloc on Mac OS X systems, use:
% make MALLOC=jemalloc
Verbose build
网上错误解决办法
网上大部分解决办法都是错误的,如下文: