This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: configure: error: no usable python found
>>>>> "Chris" == Chris Sutcliffe <ir0nh34d@gmail.com> writes:
Chris> I configured gdb with 'configure --with-python=/python'.
Chris> Looking at the config.log file I see:
Chris> | #include "python2.6/Python.h"
Chris> | int
Chris> | main ()
Chris> | {
Chris> | Py_Initialize ();
Chris> | ;
Chris> | return 0;
Chris> | }
Could you also paste the command line?
Chris> Which is why it's failing, given that Python.h is in /python/include/.
Chris> Is there a way to override where configure is looking for Python.h?
--with-python supposedly changes the includes:
case "${with_python}" in
[...]
/*)
python_includes="-I${with_python}/include"
python_libs="-L${with_python}/lib"
;;
[...]
CPPFLAGS="$CPPFLAGS ${python_includes}"
Tom