Python header files are not found when configuring gobject-introspection.
I have downloaded tar for :-----
gobject-introspection-1.34.2
command :-----
gobject-introspection-1.34.2$ LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH ./configure --disable-static
Error :----
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
How can i resolve this error, please suggest ?
The compiler is looking for Python header files. On a Linux distro this is usually solved via installing python-dev or a similar package. Under the hood, you should be able to specify the include directory via gcc's -I option.
Maybe you've to intall a dev-package for Python like 'python-dev' in Ubuntu or Debian? The command would be
aptitude install python-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With