1

我现在使用scrapy 几个月了。我一直在几台机器上使用它,从来没有遇到过麻烦。我在 Windows xp 和 7 上使用过它,我也在 Arch linux 上使用过它,安装时从来没有遇到过问题。几乎它只是 pip install scrapy 并完成了。

现在我试图在使用 CentOS 的生产服务器上设置它。由于 CentOS 默认有 python2.4,所以我首先并行安装了 python2.7。我还为python 2.7安装了virtualenv,那时一切看起来都不会出错,我有干净的环境并有我的点子。

但是当我尝试 pip install scrapy 时,它给了一个错误。

OpenSSL/ssl/connection.c: In function 'ssl_Connection_set_context':

OpenSSL/ssl/connection.c:289: warning: implicit declaration of function'SSL_set_SSL_CTX'

OpenSSL/ssl/connection.c: In function 'ssl_Connection_get_servername':

OpenSSL/ssl/connection.c:313: error: 'TLSEXT_NAMETYPE_host_name' undeclared (first use in this function)

OpenSSL/ssl/connection.c:313: error: (Each undeclared identifier is reported only once

OpenSSL/ssl/connection.c:313: error: for each function it appears in.)

OpenSSL/ssl/connection.c:320: warning: implicit declaration of function 'SSL_get_servername'

OpenSSL/ssl/connection.c:320: warning: assignment makes pointer from integer without a cast

OpenSSL/ssl/connection.c: In function 'ssl_Connection_set_tlsext_host_name':

OpenSSL/ssl/connection.c:346: warning: implicit declaration of function 'SSL_set_tlsext_host_name'

error: command 'gcc' failed with exit status 1

下面是保存在 pip 日志文件中的错误。

为包 pyOpenSSL 运行 setup.py egg_info

running egg_info
writing pip-egg-info/pyOpenSSL.egg-info/PKG-INFO
writing top-level names to pip-egg-info/pyOpenSSL.egg-info/top_level.txt
writing dependency_links to pip-egg-info/pyOpenSSL.egg-info/dependency_link$
warning: manifest_maker: standard file '-c' not found

如果有人知道它可能是什么,或者有这个问题,请帮忙。

4

1 回答 1

2

这似乎是 pyOpenSSL 的已知错误

https://bugs.launchpad.net/pyopenssl/+bug/845445

我通过手动安装 0.12 版本解决了

http://pypi.python.org/pypi/pyOpenSSL/0.12

于 2012-06-19T08:42:06.477 回答