# # # Install #
Yum-y Install gcc gcc-c++ libstdc++-devel
sudo yum install Tcl
Tar xzf redis-2.8.8.tar.gz
CD redis-2.8.8.tar.gz
Make MALLOC=LIBC
Make Test
Q:cc:command not found
Yum-y Install gcc gcc-c++ libstdc++-devel
Q: Installing Redis Error
#make
CD src && make all
MAKE[1]: Entering directory '/SOFTWARE/REDIS-2.8.8/SRC '
CC ADLIST.O
In file included from adlist.c:34:
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 '/SOFTWARE/REDIS-2.8.8/SRC '
Make: * * * [ALL] Error 2
A:
Make MALLOC=LIBC (don't know why this is used.) )
References:
Http://www.klfy.net/linux-centos64-redis26-error.shtml
Http://www.cnblogs.com/la-isla-bonita/p/3582751.html
Q:
# Make Test
CD src && make test
MAKE[1]: Entering directory '/SOFTWARE/REDIS-2.8.8/SRC '
You need TCL 8.5 or newer in order to run the Redis test
MAKE[1]: * * * [Test] Error 1
MAKE[1]: Leaving directory '/SOFTWARE/REDIS-2.8.8/SRC '
Make: * * * [Test] Error 2
A. Modifying the configuration file directory
Mkdir/etc/redis
CP Redis.conf/etc/redis
A: Start Redis
Redis-server/etc/redis/redis.conf
A. Write-on-boot echo "redis-server/etc/redis/redis.conf" >>/etc/rc.local