致命错误:jemalloc/jemalloc.h:No such file or directory

ShineLee / 2023-08-14 / 原文

学习自:redis 安装报错 jemalloc/jemalloc.h: No such file or directory 正确解决方案_风吹风铃动的博客-CSDN博客

原因

第一次执行make时由于某些异常(大部分情况是由于gcc未安装),然后在安装gcc后再次make,就会报错致命错误:jemalloc/jemalloc.h:No such file or directory。这是由于上次编译失败存在残留文件,需要清理并且重新编译

解决方案

make distclean
make clean

之后就可以正常make编译了