在mac上安装aerospike客户端时出错

时间:2014-12-22 03:19:54

标签: aerospike

不确定如何解决这个问题。我在我的mac上运行了以下命令。

  

sudo pip install aerospike

我安装了Lua

ld: library not found for -llua

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'cc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/aerospike/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CQ0_XS-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/aerospike
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 11, in <module>
    sys.exit(main())
  File "/Library/Python/2.7/site-packages/pip/__init__.py", line 185, in main
    return command.main(cmd_args)
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 8: ordinal not in range(128)

4 个答案:

答案 0 :(得分:5)

我遇到了类似的问题,但是明确地(通过LIBRARY_PATH环境变量)提供包含库的目录的路径对我有用。

首先找到包含文件liblua.a的目录(在我从源代码安装lua后,它位于我机器上的/usr/local/lib目录中):

export LIBRARY_PATH='/usr/local/lib'  # or whichever directory contains liblua.a/liblua.dylib on your machine
sudo -E bash -c 'pip install aerospike'

答案 1 :(得分:1)

Vagrant管理的虚拟机中的OS X支持Aerospike。

安装Vagrant和虚拟化系统后,请按照下列步骤操作: - 创建一个Aerospike目录 - 初始化Aerospike虚拟机 - 启动Aerospike - 验证Aerospike&amp; Aerospike管理控制台正在运行 - 验证服务器是否已正确安装 - 选择一个客户并开始开发。

Aerospike网站上提供了完整的说明: http://www.aerospike.com/docs/operations/install/vagrant/mac

答案 2 :(得分:1)

人们,我们在OS X上谈论Python的Aerospike客户端。我可以确保它安装,因为我主要在OS X上开发:)

最新的release 1.0.48有一个OS X的Python轮,意味着它包含一个预先构建的二进制包。检查您的pip是否是最新的(&gt; = 1.5)并更新了setuptools。再做pip install wheel然后再sudo pip install aerospike

答案 3 :(得分:0)

Hy, Why don't you use the docker container from Aerospike web site ? I'm not sure Aerospike will work directly on MacOs. Emmanuel.