2

これを修正する方法がわからない。Macで以下のコマンドを実行しました。

sudo pip install aerospike

ルアをインストールしました

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

4 に答える 4

5

I faced similar problem, but providing the path to directory containing the library explicitly (via LIBRARY_PATH environment variable) worked for me.

First locate the directory which contains the file liblua.a (it was in /usr/local/lib directory on my machine, after I installed lua from source):

export LIBRARY_PATH='/usr/local/lib'  # or whichever directory contains liblua.a/liblua.dylib on your machine
sudo -E bash -c 'pip install aerospike'
于 2014-12-23T06:54:03.993 に答える
1

Aerospike は、Vagrant によって管理される仮想マシンの OS X でサポートされています。

Vagrant と仮想化システムをインストールしたら、次の手順に従います。 - Aerospike ディレクトリを作成する - Aerospike 仮想マシンを初期化する - Aerospike を開始する - Aerospike と Aerospike 管理コンソールが実行されていることを確認する - サーバーが正しくインストールされていることを確認する - 選択するクライアントと開発を開始します。

完全な手順は、Aerospike の Web サイト ( http://www.aerospike.com/docs/operations/install/vagrant/mac ) で入手できます。

于 2015-06-27T00:42:43.503 に答える
0

ハイ、

Aerospike Web サイトの docker コンテナーを使用してみませんか?

Aerospike が MacO で直接動作するかどうかはわかりません。

エマニュエル。

于 2015-06-25T18:56:49.143 に答える