我的操作系统是Suse 11 Enterprise SP3。
我尝试按scrapy
安装pip
。
但是在编译Cryptography
时,它表示编译_openssl.c
我从未编辑_openssl.c
的任何内容。
不知道为什么会这样。
非常渴望知道如何解决它。
日志的一部分:
building '_openssl' extension
creating build/temp.linux-x86_64-2.7/build
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
*gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/opt/python2.7/include/python2.7 -c*** build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o*
build/temp.linux-x86_64-2.7/_openssl.c:680: error: function definition declared ‘typedef’
build/temp.linux-x86_64-2.7/_openssl.c:680: warning: return type defaults to ‘int’
build/temp.linux-x86_64-2.7/_openssl.c: In function ‘LHASH_OF’:
build/temp.linux-x86_64-2.7/_openssl.c:680: error: expected declaration specifiers before ‘Cryptography_LHASH_OF_CONF_VALUE’
build/temp.linux-x86_64-2.7/_openssl.c:682: error: storage class specified for parameter ‘Cryptography_STACK_OF_ACCESS_DESCRIPTION’
build/temp.linux-x86_64-2.7/_openssl.c:683: error: storage class specified for parameter ‘Cryptography_STACK_OF_DIST_POINT’
build/temp.linux-x86_64-2.7/_openssl.c:684: error: storage class specified for parameter ‘Cryptography_STACK_OF_POLICYQUALINFO’
build/temp.linux-x86_64-2.7/_openssl.c:685: error: storage class specified for parameter ‘Cryptography_STACK_OF_POLICYINFO’
build/temp.linux-x86_64-2.7/_openssl.c:686: error: storage class specified for parameter ‘Cryptography_STACK_OF_ASN1_INTEGER’
build/temp.linux-x86_64-2.7/_openssl.c:687: error: storage class specified for parameter ‘Cryptography_STACK_OF_GENERAL_SUBTREE’
build/temp.linux-x86_64-2.7/_openssl.c:699: error: storage class specified for parameter ‘Cryptography_STACK_OF_ASN1_OBJECT’
build/temp.linux-x86_64-2.7/_openssl.c:700: error: storage class specified for parameter ‘Cryptography_STACK_OF_X509_OBJECT’
In file included from build/temp.linux-x86_64-2.7/_openssl.c:711: