安装Redis报错jemalloc/jemalloc.h: No such file or directory

原因:

之前编译Redis失败,例如没装pkg-config插件。等到装好pkg-config后再次编译Redis就会报这个错,因为上次编译失败时残留了缓存文件。

解决方法:

先清除了残留文件再重新编译:

make distclean && make
原文地址:https://www.cnblogs.com/live41/p/15782952.html