libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
532 stars 304 forks source link

"You probably have to install the development version of the Python package" #165

Open dandv opened 4 years ago

dandv commented 4 years ago

Getting the same error as #66 (which is horribly formatted, so I thought I'd file a new issue) on Ubuntu 20.

One workaround was to run the sudo apt-get install doxygen cython line, but I don't need any of those. I just want to install this lib because https://github.com/libimobiledevice/libusbmuxd/issues/49, which I need to install https://github.com/google/ios-webkit-debug-proxy (I know, lots of yak shaving here).

So what's the minimum requirement out of doxygen and cython to fix that .autogen.sh error?

configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LIBS environment variable.
  Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================
kylebakerio commented 2 years ago

likewise, ubuntu 20.10, trying to follow this guide: https://onestepcode.com/debugging-ios-on-linux/

getting stuck running ./autogen.sh

(note: had to pip install cython, wasn't in apt source anymore, but logs here show cython found fine, so seems to not be relevant. otherwise have followed guide exactly to this point.)

configure: error: in `/home/kyle/libplist':
configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LIBS environment variable.
  Example: ./configure LIBS="-L/usr/non-standard-path/python/lib"
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================

See `config.log' for more details
philjn commented 1 year ago

I hit the same error and looking at the config.log helped. The logs indicated I didn't have Python.h:

conftest.c:47:26: fatal error: Python.h: No such file or directory
   47 |                 #include <Python.h>
      |                          ^~~~~~~~~~
compilation terminated.

The fix was I didn't have the dev packages for Python3.9 installed.

apt-get install python3-dev