iOS上

2012-07-07 19 views
0

安裝pyopenssl當我鍵入:easy_install的pyopensll 結果是:iOS上

davie:~ root# easy_install pyopenssl 
Searching for pyopenssl 
Reading http://pypi.python.org/simple/pyopenssl/ 
Reading http://pyopenssl.sourceforge.net/ 
Reading http://launchpad.net/pyopenssl 
Best match: pyOpenSSL 0.13 
Downloading http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL- 0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 
Processing pyOpenSSL-0.13.tar.gz 
Running pyOpenSSL-0.13/setup.py -q bdist_egg --dist-dir /tmp/easy_install-faDtsb/pyOpenSSL-0.13/egg-dist-tmp-bvjmgV 
warning: no previously-included files matching '*.pyc' found anywhere in distribution 
In file included from OpenSSL/crypto/crypto.c:14: 
/usr/include/python2.5/Python.h:18:20: error: limits.h: No such file or directory 
/usr/include/python2.5/Python.h:21:2: error: #error "Something's broken. UCHAR_MAX should be defined in limits.h." 
/usr/include/python2.5/Python.h:25:2: error: #error "Python's source code assumes C's unsigned char is an 8-bit type." 
/usr/include/python2.5/Python.h:32:19: error: stdio.h: No such file or directory 
/usr/include/python2.5/Python.h:34:5: error: #error "Python.h requires that stdio.h define NULL." 
/usr/include/python2.5/Python.h:37:20: error: string.h: No such file or directory 
/usr/include/python2.5/Python.h:39:19: error: errno.h: No such file or directory 
/usr/include/python2.5/Python.h:41:20: error: stdlib.h: No such file or directory 
/usr/include/python2.5/Python.h:43:20: error: unistd.h: No such file or directory 
/usr/include/python2.5/Python.h:55:20: error: assert.h: No such file or directory 
In file included from /usr/include/python2.5/Python.h:57, 
      from OpenSSL/crypto/crypto.c:14: 
/usr/include/python2.5/pyport.h:7:20: error: stdint.h: No such file or directory 
In file included from /usr/include/python2.5/Python.h:57, 
      from OpenSSL/crypto/crypto.c:14: 
/usr/include/python2.5/pyport.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_uintptr_t' 
/usr/include/python2.5/pyport.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_intptr_t' 
/usr/include/python2.5/pyport.h:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Py_ssize_t' 

多數民衆贊成的結果只是三分之一,沒有任何人知道我在做什麼錯?

回答

0

如果你想要的是pyOpenSSL,您可以添加the iNinjas Cydia repo,並從那裏安裝。

看來,你沒有你的設備上安裝一個工作的C編譯器做的。這一直是我有問題,直到我發現所謂的「編譯C應用程序的iOS4」的包。它在iBeta部分this repo

安裝完成後,如果想要手動安裝,請再次嘗試easy_install

+0

感謝它的工作原理:) – BigRed 2012-11-28 15:05:04