본문 바로가기
Linux/Redis

redis 설치 시 에러

by 준섭이 2023. 12. 26.
728x90

### redis 설치 시, 에러 

## gcc 가 없을 때 에러 발생
cd src && make all
make[1]: Entering deirectory '/usr/share/redis/src'
CC addlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] 오류 127
make[1]: Leaving directory '/usr/share/redis/src'
make: ***[all] 오류 2

yum install gcc

## jemalloc 없을 때 에러
cd src && make all
make[1]: Entering deirectory '/usr/share/redis/src'
CC addlist.o
In file included from adlist.c:34:
zmalloc.h:50:31: error: #error "Newer version of jemalloc required"
make[1]: *** [adlist.o] 오류 1
make[1]: Leaving directory '/usr/share/redis/src'
make: ***[all] 오류 2

### 리빌드 시킨다.
$make distclean
make
make test


## tcl이 없을 때 에러 발생
cd src && make all
make[1]: Entering deirectory '/usr/share/redis/src'
You need tcl 8.5 or newer in order to run the Redis test
make[1]: ***[test] 오류 1
make[1]: Leaving directory '/usr/share/redis/src'
make: ***[test] 오류 2

tcl 설치
yum -y install tcl
make test

## redis 시작 시, THP Warning 메시지
## THP Disabled
/bin/echo never > /sys/kernel/mm/transparent_hugepage/enabled

 

 

'Linux > Redis' 카테고리의 다른 글

redis rdb to aof  (0) 2023.12.27
redis-cli 명령어  (0) 2023.12.26
redis 실행  (0) 2023.12.26
redis RDB와 AOF의 차이  (0) 2023.12.26
redis 설치  (0) 2023.12.26