安装过程中缺少某些模块的位

Tim*_*Tim 11 python

我通过在 64 位 Ubuntu 14.04 上编译其源代码来安装 Python 2.7.9。运行make似乎没有错误,但它也说

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.
Run Code Online (Sandbox Code Playgroud)
  1. 如果我不需要这些模块,我现在可以安全地忽略这些模块及其缺失的位吗?如果我将来需要这些模块,我可以安装它们吗?

  2. 如果我需要安装它们,我应该如何安装模块的缺失位然后安装模块?

    • 它说要在setup.py 中查看模块的detect_modules()(我将 setup.py 中的函数提取到链接文件中),但我不确定如何分别为每个模块执行此操作?

    • 一些开发库(不仅是共享库,还有源代码)是“缺失的位”吗?在 Synaptic 包管理器中,我只是猜测要安装哪个库。

    例如,

    对于_sslpython中的模块,我应该安装吗libssl-dev在 Ubuntu 中吗?

    for_bsddb和 for bsddb185,我不知道要安装什么。在突触中,python-bsddb3已安装, 但我没有找到libbsddb3-devlibbsddb3但我找到了python-bsddb3-dbg. 安装后python-bsddb3-dbgmake仍然说 _bsddb 的位and for_bsddb bsddb185`。

    对于dl,我发现在detect_modules() 中,它似乎需要dlfcn.h,这似乎是POSIX 的一部分。由于 Linux 与 POSIX 兼容,我对 Ubuntu 缺少一些dl.

    对于dbmgdbm,我libgdbm-dev在突触中找到,但没有libdbmlibdbm-dev只有libdbm-ocaml, libdbm-ocaml-dev, libdbm-deep-perl。那我应该安装什么(特别是对于dbm)?

    为了 sunaudiodev,我从detect_modules() 中发现它似乎是一个SunOS 特定模块。但是为什么我在 Ubuntu 上需要它呢?谢谢。

    对于imageop,detect_modules 提到imageop.c,但我也不知道如何找到它进行安装。

    对于_tkinter,我已经安装了python-tkpython-tk-dbg,但make仍然说找不到它的位。


安装一些开发库后,现在make报告一些未找到的模块:

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.
Run Code Online (Sandbox Code Playgroud)