之前在FreeBSD7.4上安装很顺利就安装了,但这次在CentOS 5.5上安装时遇到了如下问题
zmalloc.o: In function zmalloc_used_memory':
/home/xx/redis-2.6.2/src/zmalloc.c:223: undefined reference to__sync_add_and_fetch_4′
collect2: ld 返回 1
make[1]: *** [redis-server] 错误 1
make[1]: Leaving directory `/home/xx/redis-2.6.2/src’
make: *** [all] 错误 2
github上面一兄弟在src/Makefile开头加 CFLAGS= -march=i686解决了,但是我试了。继续google,发现google group里有个兄弟编辑了下src/.make_settings里的OPT,改为OPT=-O2 -march=i686。make过了,但是接下来make test又过不了。报错如下:
You need ‘tclsh8.5′ in order to run the Redis test
于是就安装了最新的tcl,下载地址:http://downloads.sourceforge.net/tcl/tcl8.5.10-src.tar.gz 安装完后,总算make过了
本文地址:http://www.92csz.com/18/1231.html
如非注明则为本站原创文章,欢迎转载。转载请注明转载自:moon's blog
我靠,我怎么弄都不行啊~哎哎哎