Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

configure error for --- gobject ---- python header not found

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 ?

like image 973
Allan Avatar asked Jul 29 '26 18:07

Allan


2 Answers

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.

like image 171
Zaur Nasibov Avatar answered Aug 01 '26 10:08

Zaur Nasibov


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
like image 37
dieser_K3 Avatar answered Aug 01 '26 10:08

dieser_K3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!