4

我正在尝试使用 Xcode v 5.0 在 OS X 10.8 上安装 saltstack 并安装 dev。工具,遵循本教程

安装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图书馆。知道如何安装它或出了什么问题吗?

4

1 回答 1

3

这是找不到的ssl库。

安装 libssl 然后重试。

于 2013-10-29T08:32:38.457 回答