我对 python 很陌生,我正在尝试从 AIX 6.5 机器上的源代码安装 python 2.6.8。我用这些命令构建:
CC=gcc CXX=g++ ./configure --enable-shared
make
我得到这些错误:
Failed to find the necessary bits to build these modules:
_sqlite3 bsddb185 dl
imageop linuxaudiodev ossaudiodev
spwd sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_bsddb _ctypes _curses
_curses_panel _tkinter fcntl
我在哪里可以找到这些“位”以及如何将它们安装到 python 中?能给个详细的攻略吗?我没有root权限。谢谢。
更新
我尝试用 xlc 编译 python:
CC=xlc_r OPT="-O2 -qmaxmem=70000" ./configure --without-computed-gotos --enable-shared
make
也会得到同样的错误。
更新2
我尝试用 xlc 编译 python 2.7.3 也会出错,但fcntl
构建_bsddb
成功。
Python build finished, but the necessary bits to build these modules were not found:
_bsddb _sqlite3 bsddb185
dl imageop linuxaudiodev
ossaudiodev spwd sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_ctypes _curses _curses_panel
_tkinter