1: wget 下载tokyo cabinet
2: 编译, 安装
./configure; make && make install
注:
若提示->configure:error: zlib.h is required, 安装zlib1g-dev libssl-dev
若提示->configure:error: bzlib.h is required, 安装libbz2-dev
3:安装python的egg包:
1. git clone git://github.com/rsms/tc.git
2. python setup.py install注:
若提示->fatal error: Python.h: No such file or directory, 安装python2.6-dev
另:查看缺文件所属包使用apt-file工具(apt-file update && apt-file search xxx)
// 环境 ubuntu 10.04 && kernel 2.6.32-38-generic