我正在尝试安装最新的redis在我的macbook pro上运行10.8.5下载tar球后,我被邀请做这个项目…
键入make时:
LINK redis-server
Undefined symbols for architecture x86_64:
我知道redis是很棒的产品,但是dmg在哪里呢?我是说,你知道安装MongoDB有多容易吗?
对于那些对我Mac上血淋淋的细节感兴趣的人:
unknownb8f6b11c7271:redis-2.8.19 Mac1$ make
cd src && make all
LINK redis-server
Undefined symbols for architecture x86_64:
"___atomic_add_fetch", referenced from:
_zmalloc in zmalloc.o
_zcalloc in zmalloc.o
_zrealloc in zmalloc.o
_zmalloc_used_memory in zmalloc.o
_zmalloc_get_fragmentation_ratio in zmalloc.o
"___atomic_sub_fetch", referenced from:
_zrealloc in zmalloc.o
_zfree in zmalloc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [redis-server] Error 1
make: *** [all] Error 2
最佳答案
在os x上安装redis的简单方法是使用Homebrew。只需安装并运行:
brew install redis
此命令将已编译的二进制文件安装到系统中。