cent os 5 编译python支持ssl和sqlite
时间:2009-05-24 来源:sttx
首先需要安装对应的devel pkg(包含编译需要的lib).如果没有,使用yum install ***-devel安装之。
[root@localhost tools]# rpm -qa | grep sqlite
sqlite-3.3.6-2
sqlite-devel-3.3.6-2
[root@localhost tools]# rpm -qa | grep readline
readline-5.1-1.1
readline-devel-5.1-1.1
[root@localhost tools]# rpm -qa | grep openssl
openssl-devel-0.9.8e-7.el5
openssl-0.9.8e-7.el5
下载python2.6的源码,解压缩后直接:
./configure
make
make命令会在最后提示出不能编译的lib:
Failed to find the necessary bits to build these modules:
_bsddb _curses _curses_panel
_tkinter bsddb185 dbm
gdbm sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
注意看你需要的lib是不是在里面。
最后执行make install搞定
相关阅读 更多 +