redis 编译报错 error: jemalloc/jemalloc.h: No such file or directory

问题:

zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"

原因:jemalloc重载了Linux下的ANSI C的malloc和free函数。

解决办法:make时添加参数:

make MALLOC=libc

猜你喜欢

转载自blog.csdn.net/javahelpyou/article/details/114166448