Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

python2.7 lack necessary bit to build module

23 views
Skip to first unread message

钟驰宇

unread,
Sep 13, 2012, 4:47:29 AM9/13/12
to
I'm in ubuntu10.04 and I decide to compile python2.7 from source myself to build a GAE app.As a result,when I done with make command,it comes out with the following warning:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _tkinter _ssl
bsddb185 dbm gdbm
sunaudiodev
I ignore them and continue with make install.However when I run my GAE app,it comes out with no module named _ssl and _sqlite3.
I figure out _ssl problem by compile ssl myself and add --with-ssl option in configure.
I want to fix all this and install all of the package which annoys me.
Thanks!

Ramchandra Apte

unread,
Sep 13, 2012, 7:47:27 AM9/13/12
to
You need to the install the development packages for the libraries required by the modules. They end with -dev.

Ulrich Eckhardt

unread,
Sep 13, 2012, 7:43:15 AM9/13/12
to
Am 13.09.2012 10:47, schrieb 钟驰宇:
> I'm in ubuntu10.04 and I decide to compile python2.7 from source
> [...] However when I run my GAE app,it comes out with no module
> named _ssl and _sqlite3.

There are Debian-specific ways to ease this task that should work in
Ubuntu, too. First is "apt-get build-dep", which will install all
libraries that are needed to build Python as it was built by the
distributor. The second is "apt-get source" and more specifically the
file debian/rules within the unpacked sources then, which contains the
command line that is used to configure the according package. Note that
using dpkg-buildpackage you could even build customized Debian packages,
in case you want to replace the system Python.


Uli
0 new messages