gdb/head build, --with-python=<path to working python> FAILs @ "no usable python found " ?

PGNet Dev pgnet.dev@gmail.com
Wed Mar 25 22:14:50 GMT 2020


On 3/25/20 2:57 PM, Christian Biesinger wrote:
...
> Yes, Python 3 is known to work, though Python 2.7 is also supported.

gr8, thx

> - What does gdb/config.log say?

==>  https://pastebin.com/ZPaKjG9Z

> - Do you also have the headers

yep.

	ls -al /usr/local/pyenv/versions/3.8-dev/include/python3.8/Python.h
		-rw-r--r-- 1 root root 3.6K Mar 20 20:44 /usr/local/pyenv/versions/3.8-dev/include/python3.8/Python.h
	... etc ...

> and libraries installed?

	ls -al /usr/local/pyenv/versions/3.8-dev/lib/
		total 17M
		drwxr-xr-x  4 root root 4.0K Mar 20 20:44 ./
		drwxr-xr-x  7 root root 4.0K Mar 20 20:49 ../
		lrwxrwxrwx  1 root root   19 Mar 20 20:44 libpython3.8.so -> libpython3.8.so.1.0*
		-rwxr-xr-x  1 root root  17M Mar 20 20:44 libpython3.8.so.1.0*
		-rwxr-xr-x  1 root root 8.6K Mar 20 20:44 libpython3.so*
		drwxr-xr-x  2 root root 4.0K Mar 20 20:44 pkgconfig/
		drwxr-xr-x 35 root root 4.0K Mar 20 20:44 python3.8/

atm, NO add'l *FLAGS set to either ...

> - Just to confirm,  /usr/local/pyenv/versions/3.8-dev/bin/python3.8 is the binary and not a directory, right?

correct.

	ls -ald /usr/local/pyenv/versions/3.8-dev/bin/python3.8
		-rwxr-xr-x 1 root root 15K Mar 20 20:44 /usr/local/pyenv/versions/3.8-dev/bin/python3.8*

	/usr/local/pyenv/versions/3.8-dev/bin/python3.8 -V
		Python 3.8.2+


More information about the Gdb mailing list