redis linux報錯


下載地址:http://dl.oschina.net/soft/redis linux

學習地址:http://my.oschina.net/davehe/blog/129082 redis

              http://www.tuicool.com/articles/iiMzUj 學習

執行make命令時報錯: fetch

zmalloc.o: In function `zmalloc_used_memory':
/var/lib/tcommsvr/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 `/var/lib/tcommsvr/redis-2.8.0-rc4/src'
make: *** [all] Error 2


產生緣由:

linux爲32位版本。
查看方式:getconf LONG_BIT


解決辦法:

執行make命令時加參數: make CFLAGS="-march=i686" ui

You need tcl 8.5 or newer in order to run the Redis test spa

cd 到tcl文件夾裏而後
cd unix
./configure
編譯軟件包:
.net

make && make install
而後

redis-cli 啓動 unix

redis-cli shutdown
code

相關文章
相關標籤/搜索