python2.7 lack necessary bit to build module

Discussion in 'Python' started by 钟驰宇, Sep 13, 2012.

  1. 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!
    钟驰宇, Sep 13, 2012
    #1
    1. Advertising

  2. 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
    Ulrich Eckhardt, Sep 13, 2012
    #2
    1. Advertising

  3. On Thursday, 13 September 2012 14:17:29 UTC+5:30, 钟驰宇 wrote:
    > 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 werenot 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 optionin configure.
    >
    > I want to fix all this and install all of the package which annoys me.
    >
    > Thanks!


    You need to the install the development packages for the libraries requiredby the modules. They end with -dev.
    Ramchandra Apte, Sep 13, 2012
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Xavier
    Replies:
    0
    Views:
    405
    Xavier
    Aug 6, 2003
  2. Skip Montanaro
    Replies:
    1
    Views:
    419
    Thomas Heller
    Aug 7, 2003
  3. snacktime
    Replies:
    13
    Views:
    553
    Dan Sommers
    Feb 22, 2005
  4. Uwe Mayer

    changing from python2.3 to python2.4

    Uwe Mayer, Apr 8, 2005, in forum: Python
    Replies:
    1
    Views:
    290
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Apr 9, 2005
  5. Raymond Hettinger

    Is a 32-bit build faster than a 64-bit build

    Raymond Hettinger, Nov 12, 2010, in forum: Python
    Replies:
    3
    Views:
    239
    Antoine Pitrou
    Nov 13, 2010
Loading...

Share This Page