redis common installation errors

1 , CentOS5.7 not installed by default gcc , which cause us to make success. Using yum install:

  yum -y install gcc

 

2 , the make Times the following error:

  zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory

  zmalloc.h:55:2: error: #error "Newer version of jemalloc required"

  make[1]: *** [adlist.o] Error 1

  make[1]: Leaving directory `/data0/src/redis-2.6.2/src'

  make: *** [all] Error 2

  The reason is jemalloc overloaded Linux ANSIC under the malloc and free functions. Solution: make add parameters.

  make MALLOC=libc

 

3 , the make after, there will be a prompt

  Hint: To run 'make test' is a good idea ;)

  But not test, is generally used. If we run the Test the make  , there will be the following tips

  [devnote@devnote src]$ make test

  You need tcl 8.5 or newer in order to run the Redis test

  make: ***[test] Error_1

  The solution is to use yum install tcl8.5 (or tcl to the official website http://www.tcl.tk/ download the 8.5 version, and refer to the official website describes the installation)

  yum install tcl

 

Guess you like

Origin www.cnblogs.com/yangxuyang/p/11429128.html