In file included from adlist.c:34:0: zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录

Posted 骚里骚气1

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了In file included from adlist.c:34:0: zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录相关的知识,希望对你有一定的参考价值。

我报错是这样子的,然后老师打了一条命令
[[email protected] redis-3.0.6]# make
cd src && make all
make[1]: 进入目录“/root/lnmp_soft/redis-3.0.6/src”
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录
#include <jemalloc/jemalloc.h>
^
编译中断。
make[1]: [adlist.o] 错误 1
make[1]: 离开目录“/root/lnmp_soft/redis-3.0.6/src”
make: 
[all] 错误 2

命令如下
[[email protected] redis-3.0.6]# make MALLOC=libc

cd src && make all
make[1]: 进入目录“/root/lnmp_soft/redis-3.0.6/src”
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-dump redis-check-aof .o .gcda .gcno.gcov redis.info lcov-html
(cd ../deps && make distclean)
make[2]: 进入目录“/root/lnmp_soft/redis-3.0.6/deps”
(cd hiredis && make clean) > /dev/null || true

MALLOC这个环境变量用来去建立Redis的

以上是关于In file included from adlist.c:34:0: zmalloc.h:50:31: 致命错误:jemalloc/jemalloc.h:没有那个文件或目录的主要内容,如果未能解决你的问题,请参考以下文章

[Python] Read from a File in Python

[Python] Read from a File in Python

SQL Script for read information from a csv file in FTP Server

[Tools] Create Files in the Terminal from the Clipboard with PBPaste

Writing Text File From A Tabular Block In Oracle Forms

Display certain line(s) from a text file in Linux.