Re: GDB with python support: which version of Python?

<[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <C75A84166056C94F84D238A44AF9F6AD033FF86D@AUSX10MPC103.AMER.DELL.COM>
On May 30, 2013, at 6:04 PM, Paul Smith wrote:

> Hi all;
> 
> I'm trying to build a portable version of GDB, with Python support, that
> I can use on many different (GNU/Linux) systems.  It's frustrating
> because Python versions are all over the place: every distro you use, it
> seems like, has a different not-completely-compatible version.
> 
> Plus, I can't find any straightforward way to build GDB with Python
> linked statically to avoid local .so version problems.  Seems GDB
> configure doesn't really support this.  I'm thinking of pulling a Python
> install without any .so to force static linking.  Have others tried
> this?
> 
> I see from the README that the "oldest version of Python supported by
> GDB is 2.4".  Is there a _recommended_ version of Python?  2.7?  3.x?
> Something else?

My personal favorite is 3.latest, but for those who want Python 2, I'd say 2.latest (i.e., 2.7).  But it's really more a matter of what you have installed.  If you can most easily install some other version, or you have other libraries that need a particular Python version, then that would decide things.

I've built gdb for pretty much all the 2.x and 3.x versions supported; it's all easy.

	paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.