时间:2021-07-01 10:21:17 帮助过:13人阅读
从源码安装
1. 安装 Tokyo Cabinet
Flare 基于 Tokyo Cabinet. 安装 Tokyo Cabinet 很简单,可参考: Tokyo Cabinet 安装文档.
2. 安装 Flare
Flare 还基于 boost, 安装boost可参考这篇文章:Ubuntu下boost库的编译安装步骤详解 .
下面是安装Flare的步骤:
$ wget 'http://labs.gree.jp/data/source/flare-1.0.5.tgz' $ tar zxvf flare-1.0.5.tgz $ cd flare-1.0.5 $ ./configure --with-boost=/usr/local/boost --with-tokyocabinet=/usr/local/tokyocabinet --prefix=/usr/local/flare $ make $ sudo make install
运行之前需要做一些配置, 可参考Flare文档: tutorial。
从Debian包安装
1. 安装依赖包
please "apt-get install" before installation of Tokyo Cabinet and Flare.
zlib1g
libbz2-1.0
libboost-program-options1.33.1
libboost-regex1.33.1
like:
$ sudo apt-get install zlib1g libbz2-1.0 libboost-program-options1.33.1 libboost-regex1.33.1
2. 安装 Tokyo Cabinet
Download deb files according to your architecture (i386 or amd64), and "dpkg -i".
$ wget 'http://labs.gree.jp/data/source/tokyocabinet-dev_1.3.20-1_i386.deb $ sudo dpkg -i tokyocabinet-dev_1.3.20-1_i386.deb
3. 安装 Flare
很简单:
$ wget 'http://labs.gree.jp/data/source/flare_1.0.5-1_i386.deb $ sudo dpkg -i flare_1.0.5-1_i386.deb