在OS X上安装saltstack - 错误:ld:找不到-lssl的库

时间:2013-10-29 08:13:07

标签: macos salt-stack

我正在尝试使用安装了dev的Xcode v 5.0在OS X 10.8上安装saltstack。工具,遵循此tutorial

使用pip install salt进行安装会出现以下错误:

clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -I/Users/TK/.virtualenvs/cattapp/build/M2Crypto/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.macosx-10.6-intel-2.7/SWIG/_m2crypto_wrap.o -DTHREADING

clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -isysroot /Developer/SDKs/MacOSX10.6.sdk -g build/temp.macosx-10.6-intel-2.7/SWIG/_m2crypto_wrap.o -L/usr/lib -lssl -lcrypto -o build/lib.macosx-10.6-intel-2.7/M2Crypto/__m2crypto.so

ld: library not found for -lssl

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

error: command 'clang' failed with exit status 1

----------------------------------------
Command /Users/TK/.virtualenvs/cattapp/bin/python -c "import setuptools;__file__='/Users/TK/.virtualenvs/venv/build/M2Crypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-kUuPr8-record/install-record.txt --install-headers /Users/TK/.virtualenvs/venv/bin/../include/site/python2.7 failed with error code 1 in /Users/TK/.virtualenvs/venv/build/M2Crypto
Exception information:
Traceback (most recent call last):
  File "/Users/TK/.virtualenvs/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/Users/TK/.virtualenvs/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 250, in run
    requirement_set.install(install_options, global_options)
  File "/Users/TK/.virtualenvs/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1133, in install
    requirement.install(install_options, global_options)
  File "/Users/TK/.virtualenvs/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 577, in install
    cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
  File "/Users/TK/.virtualenvs/venv/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command /Users/TK/.virtualenvs/cattapp/bin/python -c "import setuptools;__file__='/Users/TK/.virtualenvs/venv/build/M2Crypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-kUuPr8-record/install-record.txt --install-headers /Users/TK/.virtualenvs/venv/bin/../include/site/python2.7 failed with error code 1 in /Users/TK/.virtualenvs/venv/build/M2Crypto

显然无法找到lssl库。知道如何安装它或出了什么问题?

1 个答案:

答案 0 :(得分:3)

无法找到 ssl 库。

安装libssl然后再试一次。