I install Python 2.7.9 from compiling its source on 64-bit Ubuntu 14.04.
Running make seems without error, but it also says that
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 _ssl
_tkinter bsddb185 bz2
dbm dl gdbm
imageop readline sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.If I don't need the modules, can I safely ignore those modules and their missing bits for now? If I need the modules in the future, can I install them then?
If I need to install them, how shall I install the missing bits for the modules and then install the modules?
It says to look in detect_modules()(I extract the function from setup.py into the linked file) in setup.py for the modules, but I am not sure how to do that for each module individually?
Are "the missing bits" some development libraries (not just shared libraries, but also having source code)? In Synaptic package manager, I am only guessing which library to install.
For example,
for
_sslmodule in python, shall I installlibssl-devin Ubuntu?for
_bsddband forbsddb185, I don't know what to install. In synaptic,python-bsddb3is already installed, and I don't findlibbsddb3-devorlibbsddb3but I findpython-bsddb3-dbg. After installingpython-bsddb3-dbg,makestill says the bits for _bsddband forbsddb185` not found.for
dl, I found that in detect_modules(), it seems to requiredlfcn.h, which seems to be part of POSIX. Since Linux is POSIX compatible, I was buffled by that Ubuntu has missing bits ofdl.For
dbmandgdbm, I findlibgdbm-devin synaptic, but nolibdbmorlibdbm-devbut onlylibdbm-ocaml, libdbm-ocaml-dev, libdbm-deep-perl. What shall I install then (especially fordbm)?For
sunaudiodev, I find from detect_modules(), that it seems to be a SunOS specific module. But why I need it on Ubuntu then? Thanks.For
imageop, detect_modules mentionesimageop.c, but I don't know how to find it to install either.For
_tkinter, I have installedpython-tkandpython-tk-dbg, butmakestill says its bits not found.
After install some development libraries, now make reports bits of the following modules not found:
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _tkinter bsddb185
dl imageop sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name. 4 Reset to default