從源碼安裝
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