wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
更新库:
yum install bzip2-devel
安装:
tar -zxvf tokyocabinet-1.4.47.tar.gz && cd tokyocabinet-1.4.47 && ./configure --prefix=/home/tc && make && make install
tar -zxvf tokyotyrant-1.1.41.tar.gz && cd tokyotyrant-1.1.41 && ./configure --prefix=/home/tt --with-tc=/home/tc && make && make install
软链接下库:
ln -s /home/tc/lib/libtokyocabinet.so.9 /lib/libtokyocabinet.so.9
如果是64位系统就改成/lib64/libtokyocabinet.so.9