2012-06-18 145 views
1

我現在正在使用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 

如果有人有一個想法是什麼莫非,還是有這個問題,請幫助。

回答