我是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中?你能给一些详细的指导吗?我没有权利。感谢。
更新
我尝试用xlc编译python:
CC=xlc_r OPT="-O2 -qmaxmem=70000" ./configure --without-computed-gotos --enable-shared
make
也会出现同样的错误。
UPDATE2
我尝试使用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