我正在寻找安装 2.6.6 Python 作为32-bit with pyenv在 OS X 上,但是得到:
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
尽管咨询过常见构建问题 https://github.com/yyuu/pyenv/wiki/Common-build-problems,并应用那里建议的标志,以及安装 Xcode 开发人员工具,问题仍然存在。这是完整的命令:
CFLAGS="-I$(xcrun --show-sdk-path)/usr/include -arch i386 -I$(brew --prefix openssl)/include" LDFLAGS="-arch i386 -L$(brew --prefix openssl)/lib" CONFIGURE_OPTS="--with-arch=i386" pyenv install 2.6.6
...但这构建了 64 位构建,这不是我需要的。
奇怪的是,当只尝试以下操作时,构建就可以工作:
CFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" pyenv install 2.6.6
我们缺少什么?日志中的以下内容是否意味着我需要为 i386/32 位构建的 openssl?
ld: warning: ignoring file /usr/local/opt/openssl/lib/libcrypto.dylib, file
was built for x86_64 which is not the architecture being linked (i386):
/usr/local/opt/openssl/lib/libcrypto.dylibld: warning:
ignoring file /usr/local/opt/openssl/lib/libssl.dylib, file was built for
x86_64 which is not the architecture being linked (i386):
/usr/local/opt/openssl/lib/libssl.dylib
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)