配置错误--- gobject ----找不到python标头

All*_*lan 2 python gtk gobject

配置gobject-introspection时找不到Python头文件.

我已经下载了tar:-----

gobject-introspection-1.34.2
Run Code Online (Sandbox Code Playgroud)

命令:-----

gobject-introspection-1.34.2$ LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH ./configure --disable-static
Run Code Online (Sandbox Code Playgroud)

错误:----

checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for headers required to compile python extensions... not found
  configure: error: Python headers not found
Run Code Online (Sandbox Code Playgroud)

如何解决此错误,请提出建议?

Zau*_*bov 7

编译器正在寻找Python头文件.在Linux发行版上,这通常通过安装python-dev或类似的程序包来解决.在引擎盖下,你应该能够通过gcc -I选项指定include目录.