Database/Redis
[Redis] jemalloc No such file or directory 오류 해결하기
꽁담
2021. 3. 8. 11:55
상황
레디스 압축파일을 해제한 후 make 명령어를 수행하면 아래처럼 jemalloc No such file or directory 오류가 발생합니다.
1
2
3
4
5
6
7
8
9
10
11
|
[root@redis-5.0.7]# make
cd src && make all
make[1]: Entering directory `/opt/redis-5.0.7/src'
CC Makefile.dep
make[1]: Leaving directory `/opt/redis-5.0.7/src'
make[1]: Entering directory `/opt/redis-5.0.7/src'
CC adlist.o
In file included from adlist.c:34:0:
zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
^~~~~~~~~~~~~~~~~~~~~
|
cs |
해결방법
1. make clean 을 수행하여 설치 진행한 내용을 지워줍니다.
2. deps 폴더로 들어갑니다.
3. 레디스 설치에 필요한 기능을 설치합니다.
4. 다시 상위 경로로 가서 make 를 진행합니다.
1
2
3
4
5
6
7
8 9 |
[root@redis-5.0.7]# make clean
[root@redis-5.0.7]# cd deps
[root@deps]# make hiredis jemalloc linenoise lua
[root@deps]# cd .. [root@redis-5.0.7]# make
|
cs |