pyopensslのインストールでエラー
ubuntuです
こんな感じのエラー
$ sudo pip install pyopenssl Downloading/unpacking pyopenssl Downloading pyOpenSSL-0.13.tar.gz (250Kb): 250Kb downloaded Running setup.py egg_info for package pyopenssl warning: no previously-included files matching '*.pyc' found anywhere in distribution Installing collected packages: pyopenssl Running setup.py install for pyopenssl building 'OpenSSL.crypto' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c OpenSSL/crypto/crypto.c -o build/temp.linux-i686-2.6/OpenSSL/crypto/crypto.o OpenSSL/crypto/crypto.c:14:20: error: Python.h: そのようなファイルやディレクトリはありません In file included from OpenSSL/crypto/crypto.h:30, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509_Type’ OpenSSL/crypto/x509.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ OpenSSL/crypto/x509.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/x509.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/x509.h:31: error: expected ‘)’ before ‘*’ token In file included from OpenSSL/crypto/crypto.h:31, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509name.h:19: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509name.h:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Name_Type’ OpenSSL/crypto/x509name.h:26: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:32, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/netscape_spki.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/netscape_spki.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_NetscapeSPKI_Type’ OpenSSL/crypto/netscape_spki.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:33, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509store.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509store.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Store_Type’ OpenSSL/crypto/x509store.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:34, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509req.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509req.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Req_Type’ OpenSSL/crypto/x509req.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:35, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkey.h:15: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkey.h:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKey_Type’ OpenSSL/crypto/pkey.h:22: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:36, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509ext.h:18: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509ext.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Extension_Type’ OpenSSL/crypto/x509ext.h:27: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:37, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkcs7.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkcs7.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS7_Type’ OpenSSL/crypto/pkcs7.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:38, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkcs12.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkcs12.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS12_Type’ OpenSSL/crypto/pkcs12.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:39, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/crl.h:6: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crl.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_CRL_Type’ OpenSSL/crypto/crl.h:13: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:40, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/revoked.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_Revoked_Type’ OpenSSL/crypto/revoked.h:11: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ OpenSSL/crypto/revoked.h:15: error: expected ‘)’ before ‘*’ token In file included from OpenSSL/crypto/crypto.h:41, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/../util.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/../util.h:32: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:63: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:78: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:83: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token In file included from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/crypto.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.h:96: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crypto.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:28: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crypto.c: In function ‘global_passphrase_callback’: OpenSSL/crypto/crypto.c:43: error: ‘PyObject’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: error: (Each undeclared identifier is reported only once OpenSSL/crypto/crypto.c:43: error: for each function it appears in.) OpenSSL/crypto/crypto.c:43: error: ‘func’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: error: ‘argv’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: warning: left-hand operand of comma expression has no effect OpenSSL/crypto/crypto.c:43: error: ‘ret’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: warning: left-hand operand of comma expression has no effect OpenSSL/crypto/crypto.c:46: error: expected expression before ‘)’ token OpenSSL/crypto/crypto.c:47: warning: implicit declaration of function ‘Py_BuildValue’ OpenSSL/crypto/crypto.c:48: warning: implicit declaration of function ‘PyEval_CallObject’ OpenSSL/crypto/crypto.c:49: warning: implicit declaration of function ‘Py_DECREF’ OpenSSL/crypto/crypto.c:52: warning: implicit declaration of function ‘PyString_Check’ OpenSSL/crypto/crypto.c:54: warning: implicit declaration of function ‘PyErr_SetString’ OpenSSL/crypto/crypto.c:54: error: ‘PyExc_ValueError’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:57: warning: implicit declaration of function ‘PyString_Size’ OpenSSL/crypto/crypto.c:60: warning: implicit declaration of function ‘PyString_AsString’ OpenSSL/crypto/crypto.c: At top level: OpenSSL/crypto/crypto.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:250: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:297: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:353: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:400: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:501: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:553: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:584: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:601: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:664: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_methods’ OpenSSL/crypto/crypto.c: In function ‘initcrypto’: OpenSSL/crypto/crypto.c:813: error: ‘PyObject’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:813: error: ‘c_api_object’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:815: error: ‘module’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:823: warning: implicit declaration of function ‘Py_InitModule3’ OpenSSL/crypto/crypto.c:823: error: ‘crypto_methods’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:840: warning: implicit declaration of function ‘PyCObject_FromVoidPtr’ OpenSSL/crypto/crypto.c:844: warning: implicit declaration of function ‘Py_INCREF’ OpenSSL/crypto/crypto.c:845: warning: implicit declaration of function ‘PyModule_AddObject’ OpenSSL/crypto/crypto.c:849: error: ‘crypto_Error’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:849: warning: implicit declaration of function ‘PyErr_NewException’ OpenSSL/crypto/crypto.c:859: warning: implicit declaration of function ‘PyModule_AddIntConstant’ OpenSSL/crypto/crypto.c:870: warning: implicit declaration of function ‘init_crypto_x509’ OpenSSL/crypto/crypto.c:872: warning: implicit declaration of function ‘init_crypto_x509name’ OpenSSL/crypto/crypto.c:874: warning: implicit declaration of function ‘init_crypto_x509store’ OpenSSL/crypto/crypto.c:876: warning: implicit declaration of function ‘init_crypto_x509req’ OpenSSL/crypto/crypto.c:878: warning: implicit declaration of function ‘init_crypto_pkey’ OpenSSL/crypto/crypto.c:880: warning: implicit declaration of function ‘init_crypto_x509extension’ OpenSSL/crypto/crypto.c:882: warning: implicit declaration of function ‘init_crypto_pkcs7’ OpenSSL/crypto/crypto.c:884: warning: implicit declaration of function ‘init_crypto_pkcs12’ OpenSSL/crypto/crypto.c:886: warning: implicit declaration of function ‘init_crypto_netscape_spki’ OpenSSL/crypto/crypto.c:888: warning: implicit declaration of function ‘init_crypto_crl’ OpenSSL/crypto/crypto.c:890: warning: implicit declaration of function ‘init_crypto_revoked’ error: command 'gcc' failed with exit status 1 Complete output from command /usr/bin/python -c "import setuptools; __file__='/home/vagrant/build/pyopenssl/setup.py'; execfile('/home/vagrant/build/pyopenssl/setup.py')" install --single-version-externally-managed --record /tmp/pip-LiZiQ1-record/install-record.txt --install-headers /home/vagrant/lib/include: running install running build running build_py creating build creating build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/OpenSSL copying OpenSSL/__init__.py -> build/lib.linux-i686-2.6/OpenSSL copying OpenSSL/tsafe.py -> build/lib.linux-i686-2.6/OpenSSL copying OpenSSL/version.py -> build/lib.linux-i686-2.6/OpenSSL creating build/lib.linux-i686-2.6/OpenSSL/test copying OpenSSL/test/__init__.py -> build/lib.linux-i686-2.6/OpenSSL/test copying OpenSSL/test/util.py -> build/lib.linux-i686-2.6/OpenSSL/test copying OpenSSL/test/test_crypto.py -> build/lib.linux-i686-2.6/OpenSSL/test copying OpenSSL/test/test_rand.py -> build/lib.linux-i686-2.6/OpenSSL/test copying OpenSSL/test/test_ssl.py -> build/lib.linux-i686-2.6/OpenSSL/test running build_ext building 'OpenSSL.crypto' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/OpenSSL creating build/temp.linux-i686-2.6/OpenSSL/crypto gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c OpenSSL/crypto/crypto.c -o build/temp.linux-i686-2.6/OpenSSL/crypto/crypto.o OpenSSL/crypto/crypto.c:14:20: error: Python.h: そのようなファイルやディレクトリはありません In file included from OpenSSL/crypto/crypto.h:30, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509_Type’ OpenSSL/crypto/x509.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ OpenSSL/crypto/x509.h:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/x509.h:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/x509.h:31: error: expected ‘)’ before ‘*’ token In file included from OpenSSL/crypto/crypto.h:31, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509name.h:19: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509name.h:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Name_Type’ OpenSSL/crypto/x509name.h:26: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:32, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/netscape_spki.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/netscape_spki.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_NetscapeSPKI_Type’ OpenSSL/crypto/netscape_spki.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:33, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509store.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509store.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Store_Type’ OpenSSL/crypto/x509store.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:34, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509req.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509req.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Req_Type’ OpenSSL/crypto/x509req.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:35, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkey.h:15: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkey.h:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKey_Type’ OpenSSL/crypto/pkey.h:22: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:36, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/x509ext.h:18: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/x509ext.h:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_X509Extension_Type’ OpenSSL/crypto/x509ext.h:27: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:37, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkcs7.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkcs7.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS7_Type’ OpenSSL/crypto/pkcs7.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:38, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/pkcs12.h:17: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/pkcs12.h:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_PKCS12_Type’ OpenSSL/crypto/pkcs12.h:24: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:39, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/crl.h:6: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crl.h:8: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_CRL_Type’ OpenSSL/crypto/crl.h:13: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ In file included from OpenSSL/crypto/crypto.h:40, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/revoked.h:6: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_Revoked_Type’ OpenSSL/crypto/revoked.h:11: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ OpenSSL/crypto/revoked.h:15: error: expected ‘)’ before ‘*’ token In file included from OpenSSL/crypto/crypto.h:41, from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/../util.h:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/../util.h:32: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:63: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:78: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:83: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/../util.h:135: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token In file included from OpenSSL/crypto/crypto.c:16: OpenSSL/crypto/crypto.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.h:96: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crypto.c:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:28: error: expected ‘)’ before ‘*’ token OpenSSL/crypto/crypto.c: In function ‘global_passphrase_callback’: OpenSSL/crypto/crypto.c:43: error: ‘PyObject’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: error: (Each undeclared identifier is reported only once OpenSSL/crypto/crypto.c:43: error: for each function it appears in.) OpenSSL/crypto/crypto.c:43: error: ‘func’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: error: ‘argv’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: warning: left-hand operand of comma expression has no effect OpenSSL/crypto/crypto.c:43: error: ‘ret’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:43: warning: left-hand operand of comma expression has no effect OpenSSL/crypto/crypto.c:46: error: expected expression before ‘)’ token OpenSSL/crypto/crypto.c:47: warning: implicit declaration of function ‘Py_BuildValue’ OpenSSL/crypto/crypto.c:48: warning: implicit declaration of function ‘PyEval_CallObject’ OpenSSL/crypto/crypto.c:49: warning: implicit declaration of function ‘Py_DECREF’ OpenSSL/crypto/crypto.c:52: warning: implicit declaration of function ‘PyString_Check’ OpenSSL/crypto/crypto.c:54: warning: implicit declaration of function ‘PyErr_SetString’ OpenSSL/crypto/crypto.c:54: error: ‘PyExc_ValueError’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:57: warning: implicit declaration of function ‘PyString_Size’ OpenSSL/crypto/crypto.c:60: warning: implicit declaration of function ‘PyString_AsString’ OpenSSL/crypto/crypto.c: At top level: OpenSSL/crypto/crypto.c:76: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:151: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:250: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:297: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:353: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:400: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:457: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:501: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:553: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:584: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:601: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:616: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:664: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token OpenSSL/crypto/crypto.c:710: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘crypto_methods’ OpenSSL/crypto/crypto.c: In function ‘initcrypto’: OpenSSL/crypto/crypto.c:813: error: ‘PyObject’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:813: error: ‘c_api_object’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:815: error: ‘module’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:823: warning: implicit declaration of function ‘Py_InitModule3’ OpenSSL/crypto/crypto.c:823: error: ‘crypto_methods’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:840: warning: implicit declaration of function ‘PyCObject_FromVoidPtr’ OpenSSL/crypto/crypto.c:844: warning: implicit declaration of function ‘Py_INCREF’ OpenSSL/crypto/crypto.c:845: warning: implicit declaration of function ‘PyModule_AddObject’ OpenSSL/crypto/crypto.c:849: error: ‘crypto_Error’ undeclared (first use in this function) OpenSSL/crypto/crypto.c:849: warning: implicit declaration of function ‘PyErr_NewException’ OpenSSL/crypto/crypto.c:859: warning: implicit declaration of function ‘PyModule_AddIntConstant’ OpenSSL/crypto/crypto.c:870: warning: implicit declaration of function ‘init_crypto_x509’ OpenSSL/crypto/crypto.c:872: warning: implicit declaration of function ‘init_crypto_x509name’ OpenSSL/crypto/crypto.c:874: warning: implicit declaration of function ‘init_crypto_x509store’ OpenSSL/crypto/crypto.c:876: warning: implicit declaration of function ‘init_crypto_x509req’ OpenSSL/crypto/crypto.c:878: warning: implicit declaration of function ‘init_crypto_pkey’ OpenSSL/crypto/crypto.c:880: warning: implicit declaration of function ‘init_crypto_x509extension’ OpenSSL/crypto/crypto.c:882: warning: implicit declaration of function ‘init_crypto_pkcs7’ OpenSSL/crypto/crypto.c:884: warning: implicit declaration of function ‘init_crypto_pkcs12’ OpenSSL/crypto/crypto.c:886: warning: implicit declaration of function ‘init_crypto_netscape_spki’ OpenSSL/crypto/crypto.c:888: warning: implicit declaration of function ‘init_crypto_crl’ OpenSSL/crypto/crypto.c:890: warning: implicit declaration of function ‘init_crypto_revoked’ error: command 'gcc' failed with exit status 1 ---------------------------------------- Command /usr/bin/python -c "import setuptools; __file__='/home/vagrant/build/pyopenssl/setup.py'; execfile('/home/vagrant/build/pyopenssl/setup.py')" install --single-version-externally-managed --record /tmp/pip-LiZiQ1-record/install-record.txt --install-headers /home/vagrant/lib/include failed with error code 1 Storing complete log in ./pip-log.txt
sudo apt-get build-dep python-openssl
これで入るようになった