2016-05-10 27 views
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. 
+0

你安装了python的开发包吗? –

+0

不,我没有,为什么需要开发包? –

+0

分发通常将程序拆分为二进制文件(我只是想使用它的东西)和开发相关的东西。安装* python *会得到你的二进制文件,安装* python-dev *(ubuntu et al)或* python-devel *(opensuse,centos,...)这些行的东西让你获得开发头文件等。 –

回答

0

正如你已经指定的路径要建立对Python版本,我猜你错过了蟒蛇的开发头。

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

+1

不,我没有。我怎样才能做到这一点? –

相关问题