首页 > 服务器 > Ubuntu > Ubuntu下从源码编译安装flare以及如何从Debian包安装
2014
11-07

Ubuntu下从源码编译安装flare以及如何从Debian包安装

从源码安装

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

也可以参考教程: Tutorial.

编程技巧