Building python, bz2 coming up missing

Dan Stromberg drsalists at
Thu Nov 22 02:43:57 CET 2012

On Wed, Nov 21, 2012 at 12:18 PM, Dan Stromberg <drsalists at> wrote:

> I'm attempting to build cpython 2.{5,6,7} and cpython 3.[0,1,2,3}.  I find
> that having them all around facilitates interversion testing and
> discovering what works in which versions.
> Anyway, in 3.3, I'm getting a bz2 module, but in 3.2, I'm not - but only
> when compiling on Linux Mint 14.  On Linux Mint 13, I got a bz2 module in
> all my builds.
> In 3.2 on Linux Mint 14, I get the familiar:
> Python build finished, but the necessary bits to build these modules were
> not found:
> _curses            _curses_panel      _dbm
> _gdbm              _sqlite3           _ssl
> _tkinter           bz2                ossaudiodev
> readline           zlib
> To find the necessary bits, look in in detect_modules() for the
> module's name.
> Except I definitely installed a bz2 "dev" package.  Actually, I also
> installed gdbm and Berkeley DB dev packages.

I've worked around the issue with:

export LDFLAGS="-L/usr/lib/i386-linux-gnu"

...prior to ./configure, but it'd still be nice to know a way of building
things without requiring this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list