0
我想在Fedora 23中構建moduler-boost。我已經安裝了gcc-c++
和python 2.7
。是否需要特殊的python模塊來構建linux
但它仍然給這個錯誤,任何想法?
"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 *會得到你的二進制文件,安裝* python-dev *(ubuntu et al)或* python-devel *(opensuse,centos,...)這些行的東西讓你獲得開發頭文件等。 –