Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
2021/11/9 19:42:20
本文主要是介绍Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1. 错误信息:
cd src && make install make[1]: Entering directory `/root/redis-6.2.6/src' CC Makefile.dep make[1]: Leaving directory `/root/redis-6.2.6/src' make[1]: Entering directory `/root/redis-6.2.6/src' CC adlist.o In file included from adlist.c:34:0: zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory #include <jemalloc/jemalloc.h> ^ compilation terminated. make[1]: *** [adlist.o] Error 1 make[1]: Leaving directory `/root/redis-6.2.6/src' make: *** [install] Error 2
2. 解决方法:
make MALLOC=libc
3. 再次安装
make PREFIX=/apps/redis install
这篇关于Redis安装报错:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-08阿里云Redis项目实战入门教程
- 2024-11-08阿里云Redis资料:新手入门与初级使用指南
- 2024-11-08阿里云Redis教程:新手入门及实用指南
- 2024-11-07阿里云Redis学习入门:新手必读指南
- 2024-11-07阿里云Redis学习入门:从零开始的操作指南
- 2024-11-07阿里云Redis学习:初学者指南
- 2024-11-06阿里云Redis入门教程:轻松搭建与使用指南
- 2024-11-02Redis项目实战:新手入门教程
- 2024-10-22Redis入门教程:轻松掌握数据存储与操作
- 2024-10-22Redis缓存入门教程:快速掌握Redis缓存基础知识