gpt4 book ai didi

python - boost需要特殊的python模块才能在linux中构建吗

转载 作者:太空宇宙 更新时间:2023-11-04 03:31:55 24 4
gpt4 key购买 nike

我正在尝试在 Fedora 23 中构建 moduler-boost。我已经安装了 gcc-c++python 2.7 .

但它仍然给出这个错误,有什么想法吗?

    "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -m64  -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DBOOST_PYTHON_STATIC_LIB -DNDEBUG  -I"." -I"/usr/include/python2.7" -c -o "bin.v2/libs/python/build/gcc-5.3.1/release/link-static/threading-multi/exec.o" "libs/python/src/exec.cpp"

...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-5.3.1/release/link-static/threading-multi/exec.o...
gcc.compile.c++ bin.v2/libs/python/build/gcc-5.3.1/release/link-static/threading-multi/object/function_doc_signature.o
In file included from ./boost/python/detail/prefix.hpp:13:0,
from ./boost/python/converter/registrations.hpp:8,
from libs/python/src/object/function_doc_signature.cpp:9:
./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
compilation terminated.

最佳答案

由于您已经指定了要构建的 python 版本的路径,我猜您缺少 python 的开发人员 header 。

在 ubuntu 上,安装 python-dev,或更具体地说,安装 libpython2.7-dev。

关于python - boost需要特殊的python模块才能在linux中构建吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37132210/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com