依赖

安装redis需要先安装tcl
http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html

获取软件

#tcl8.5
wget http://downloads.sourceforge.net/tcl/tcl8.5.12-src.tar.gz
#redis
wget http://redis.googlecode.com/files/redis-2.6.2.tar.gz

安装

tcl

tar -zxf tcl8.5.12-html.tar.gz --strip-components=1
cd unix && ./configure --prefix=/usr \
--enable-threads \
--mandir=/usr/share/man
make
sed -e "s@^\(TCL_SRC_DIR='\).*@/usr/include'@" \
-e "/TCL_B/s@='\(-L\)\?.*unix@='/usr/lib@" \
-i tclConfig.sh
make install
make install-private-headers
ln -v -sf tclsh8.5 /usr/bin/tclsh
chmod -v 755 /usr/lib/libtcl8.5.so