Chinaunix首页 | 论坛 | 博客

C++

  • 博客访问: 6772
  • 博文数量: 1
  • 博客积分: 85
  • 博客等级: 民兵
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-20 12:40
文章分类
文章存档

2009年(1)

我的朋友
最近访客

分类: Python/Ruby

2009-05-24 13:11:33

首先需要安装对应的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搞定



阅读(579) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:没有了

给主人留下些什么吧!~~