编译boost python模块遇到的错误:../../libraries/boost_1_44_0/boost/python/detail/wrap_python.hpp:75:24: fatal error: patchlevel.h: No such file or directory
2014-09-23 14:49
1406 查看
就是遇到类似标题上面的错误。
原因是没有安装对应python的python-dev依赖,不然编译到boost python模块的时候就会出错。
所以解决方案是sudo apt-get install python-dev就行了
然后用boost自带的b2工具编译boost python模块的时候就不会出错了
注意好好看以下文档,官方文档很重要。
references:
http://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist http://stackoverflow.com/questions/15136671/unable-to-build-boost-python http://stackoverflow.com/questions/1771063/no-such-file-or-directory-error-with-boost-python http://www.boost.org/doc/libs/1_56_0/libs/python/doc/building.html http://www.boost.org/doc/libs/1_56_0/more/getting_started/unix-variants.html
原因是没有安装对应python的python-dev依赖,不然编译到boost python模块的时候就会出错。
所以解决方案是sudo apt-get install python-dev就行了
然后用boost自带的b2工具编译boost python模块的时候就不会出错了
注意好好看以下文档,官方文档很重要。
references:
http://stackoverflow.com/questions/6782071/boostbuild-patchlevel-h-does-not-exist http://stackoverflow.com/questions/15136671/unable-to-build-boost-python http://stackoverflow.com/questions/1771063/no-such-file-or-directory-error-with-boost-python http://www.boost.org/doc/libs/1_56_0/libs/python/doc/building.html http://www.boost.org/doc/libs/1_56_0/more/getting_started/unix-variants.html
相关文章推荐
- tesseract编译错误:fatal error: allheaders.h: No such file or directory
- (诊断)处理错误fatal error: Python.h: No such file or directory
- (ubuntu) pip install scandir 时出现错误 fatal error: Python.h: No such file or directory
- 一种编译错误的解决办法。/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- python下安装模块报错:psutil/_psutil_linux.c:12:20: fatal error: Python.h: No such file or directory
- 使用bazel 编译tensorflow serving时报错:fatal error: Python.h: No such file or directory
- 编译Busybox时,出现错误fatal error: curses.h: No such file or directory
- 【Redis】编译错误zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory
- caffe : /wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or dir
- Ubuntu出现错误 ----Fatal error: Python.h: No such file or Directory
- 安装pycrypto出现“fatal error: Python.h: No such file or directory”错误
- ap端编译时遇到fatal error:openssl/opensslv.h: No such file or directory
- BUG!!!======> 编译安装lua 时 lua.c:67:31: fatal error: readline/readline.h: No such file or directory
- 编译Linux内核时出现错误gcc: error: elf_i386: No such file or directory
- 编译安装lua 时 lua.c:67:31: fatal error: readline/readline.h: No such file or directory
- Android开发遇到error opening trace file: No such file or directory (2) 错误
- Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
- QT 嵌入式编译出错:cc1: fatal error: .pch/release-shared-emb-arm/QtGui: No such file or directory 解决方案:
- 内核编译错误:crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory