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://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html 安装完后,就可以了 转载请保留固定链接: https://linuxeye.com/configuration/1473.html |