部分转载于http://blog.youkuaiyun.com/hmc20071120015/article/details/8142454,以变日后查阅。
zmalloc.o: In function `zmalloc_used_memory':
/root/redis-2.6.7/src/zmalloc.c:223: undefined reference to `__sync_add_and_fetch_4'
collect2: ld returned 1 exit status
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/root/redis-2.6.7/src'
make: *** [all] Error 2
编辑了下src/.make_settings里的OPT,改为OPT=-O2 -march=i686。
make test
You need 'tclsh8.5' in order to run the Redis test
make: *** [test] Error 1
安装最新的tcl8.5.12解决。
安装过程:
./configure --prefix=/root/tcl --enable-shared
make
sed -e "s@^\(TCL_SRC_DIR='\).*@\1/usr/include'@" \ -e "/TCL_B/s@='\(-L\)\?.*unix@='\1/usr/lib@" \ -i tclConfig.sh
make install
cp /root/tcl/lib/libtcl8.5.so /usr/lib/
cp /root/tcl/bin/tclsh8.5 /usr/bin/
chmod -v 755 /usr/lib/libtcl8.5.so
ldconfig
ldconfig -p | grep tcl
libtcl8.5.so (libc6) => /usr/lib/libtcl8.5.so
libtcl8.4.so (libc6) => /usr/lib/libtcl8.4.so