我现在正在使用scrapy几个月。我一直在这台机器上使用它,从来没有遇到过麻烦。我在Windows XP和7上使用它,我也在arch linux上使用它,并且从未遇到过安装问题。几乎它只是点安装scrapy并完成。安装scrapy(openSSL)
现在我正试图在使用CentOS的生产服务器上进行设置。由于默认情况下,CentOS具有python2.4,所以我并行安装了python2.7。另外我为python 2.7安装了virtualenv,在这一点上,一切都看起来像不会出错,我有我的清洁环境,并有我的点子。
但是当我尝试pip安装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日志文件中的错误。
运行setup.py egg_info用于包装pyOpenSSL
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
如果有人有一个想法是什么莫非,还是有这个问题,请帮助。