为现有 Plone 3.3.4 安装的 Python 添加 SSL 支持
我有一个使用统一安装程序创建的现有 Plone 3.3.4 安装。与统一安装程序一起打包的 python 不包含 SSL 支持。我该如何向现有安装添加 SSL 支持?我是否需要重建 python,然后运行 bootstrap 和 buildout 才能启用它?或者它是否可以简单地作为鸡蛋添加到构建中?
我能够创建一个支持 SSL 的单独的 python 版本(2.4.6),但在使用该 python 版本运行 bootstrap.py 时遇到问题。:
File "bootstrap.py", line 53, in ?
PYTHONPATH=
AssertionError
看起来应该从 setuptools 获取 PYTHONPATH,那么是否有一些更改我需要去那里吗?
我是否以错误的方式处理这个问题?任何帮助表示赞赏!
谢谢! DR
I have an existing Plone 3.3.4 installation that was created using the Unified Installer. The python packaged with the Unified Installer does not include SSL support. How would I go about adding SSL support to an existing installation? Do i need to rebuild python, then run bootstrap and buildout to get have it enabled? Or is it something that can simply be added to buildout as an egg?
I am able to create a seperate python build(2.4.6) with SSL support, but am having trouble using that python version to run bootstrap.py.:
File "bootstrap.py", line 53, in ?
PYTHONPATH=
AssertionError
It looks like it should be getting the PYTHONPATH from setuptools, so are there some changes i need to make there?
Am i going about this the wrong way? Any help is appreciated!
Thanks!
DR
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最简单的路径:重新运行统一安装程序,指定不同的目标。如果这次找到 libssl,则一切就绪。如果没有,请重试,并使用 --with-python 选择支持 ssl 的 python2.4.6。而且,您也可以在使用时更新到 3.3.6。
或者,为新的 Python 2.6.4 安装分发,然后再次尝试引导。 Distribute 将为您提供安装工具——错误更少。
Easiest path: re-run the unified installer, specifying a different target. If it finds libssl this time, you're set. If not, try again, and use --with-python to pick your python2.4.6 that has ssl support. And, you might as well update to 3.3.6 while you're at it.
Alternatively, install distribute for your new Python 2.6.4, then try bootstrapping again. Distribute will give you setuptools -- with fewer bugs.
通用安装程序将使用 SSL 构建默认情况下,如果找不到构建 SSL 支持所需的开发库和标头,则会实际停止,除非您显式使用
--without-ssl
库。那是你做的吗?The universal installer will build with SSL by default and will acctually stop if it can't find the development libraries and headers it needs to build SSL support unless you explicitly use the
--without-ssl
libraries. Is that what you did?