遇到 Unable to find 'openssl/opensslv.h',但是实际是/usr/include/openssl下有这个文件的。
请问如何解决?谢谢
4 个解决方案
#1
opensslv.h 那这个文件你没有?
你使用pip 来安装看看
你使用pip 来安装看看
#2
有这个文件的。
它找不到的文件有一串,但是实际都在/usr/include/openssl下。
[root@test m2crypto-0.22]# python setup.py install
running install
running bdist_egg
running egg_info
writing M2Crypto.egg-info/PKG-INFO
writing top-level names to M2Crypto.egg-info/top_level.txt
writing dependency_links to M2Crypto.egg-info/dependency_links.txt
reading manifest file 'M2Crypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.dat' under directory 'tests'
warning: no files found matching '*.p7*' under directory 'tests'
warning: no previously-included files found matching 'M2Crypto/_m2crypto.py'
writing manifest file 'M2Crypto.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/include/python2.7 -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.7/M2Crypto -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf-x86_64.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf-x86_64.h'
error: command 'swig' failed with exit status 1
它找不到的文件有一串,但是实际都在/usr/include/openssl下。
[root@test m2crypto-0.22]# python setup.py install
running install
running bdist_egg
running egg_info
writing M2Crypto.egg-info/PKG-INFO
writing top-level names to M2Crypto.egg-info/top_level.txt
writing dependency_links to M2Crypto.egg-info/dependency_links.txt
reading manifest file 'M2Crypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.dat' under directory 'tests'
warning: no files found matching '*.p7*' under directory 'tests'
warning: no previously-included files found matching 'M2Crypto/_m2crypto.py'
writing manifest file 'M2Crypto.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/include/python2.7 -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.7/M2Crypto -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf-x86_64.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf-x86_64.h'
error: command 'swig' failed with exit status 1
#3
楼主这个问题解决了吗?
#4
pip install M2Crypto 不行 百度搜索 M2Crypto win
#1
opensslv.h 那这个文件你没有?
你使用pip 来安装看看
你使用pip 来安装看看
#2
有这个文件的。
它找不到的文件有一串,但是实际都在/usr/include/openssl下。
[root@test m2crypto-0.22]# python setup.py install
running install
running bdist_egg
running egg_info
writing M2Crypto.egg-info/PKG-INFO
writing top-level names to M2Crypto.egg-info/top_level.txt
writing dependency_links to M2Crypto.egg-info/dependency_links.txt
reading manifest file 'M2Crypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.dat' under directory 'tests'
warning: no files found matching '*.p7*' under directory 'tests'
warning: no previously-included files found matching 'M2Crypto/_m2crypto.py'
writing manifest file 'M2Crypto.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/include/python2.7 -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.7/M2Crypto -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf-x86_64.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf-x86_64.h'
error: command 'swig' failed with exit status 1
它找不到的文件有一串,但是实际都在/usr/include/openssl下。
[root@test m2crypto-0.22]# python setup.py install
running install
running bdist_egg
running egg_info
writing M2Crypto.egg-info/PKG-INFO
writing top-level names to M2Crypto.egg-info/top_level.txt
writing dependency_links to M2Crypto.egg-info/dependency_links.txt
reading manifest file 'M2Crypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.dat' under directory 'tests'
warning: no files found matching '*.p7*' under directory 'tests'
warning: no previously-included files found matching 'M2Crypto/_m2crypto.py'
writing manifest file 'M2Crypto.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/include/python2.7 -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.7/M2Crypto -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
SWIG/_m2crypto.i:31: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:45: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf-x86_64.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf-x86_64.h'
error: command 'swig' failed with exit status 1
#3
楼主这个问题解决了吗?
#4
pip install M2Crypto 不行 百度搜索 M2Crypto win