32位CentOS安装Redis时会报错,信息如下:
zmalloc.o: In function `zmalloc_used_memory':
/redis-2.8.0-rc4/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 `redis-2.8.0-rc4/src'
make: *** [all] Error 2
查看:getconf LONG_BIT
执行make命令时加参数:make CFLAGS="-march=i686"
阅读(1761) | 评论(0) | 转发(0) |