Following the announcement of python3 support. I have tried building gdb --with-python. However this is failing to build with gdb-7.6. python3.2.5: ./configure --prefix=/opt3 make sudo make install gdb with python: export LDFLAGS=-L/opt3/lib ./configure --with-python=/opt3/ --prefix=/opt3 checking for python2.7... no checking for python2.6... no checking for python2.5... no checking for python2.4... no configure: error: no usable python found at /opt3/ ls /opt3/lib/ libpython3.2m.a pkgconfig python3.2
Does /opt3/bin/python exist? There's a long comment in src/gdb/configure.ac that explains the --with-python needs.
Thanks! The comments in configure.ac explained everything. Worked fine once I pointed to the binary with-python instead of the prefix (which only works with python2)
Fixed.