Home  >  Article  >  Backend Development  >  Compile and install flare from source code under ubuntu and how to install from Debian package

Compile and install flare from source code under ubuntu and how to install from Debian package

伊谢尔伦
伊谢尔伦Original
2016-11-25 14:45:041259browse

Install from source code

1. Install Tokyo Cabinet

Flare is based on Tokyo Cabinet. Installing Tokyo Cabinet is very simple, you can refer to: Tokyo Cabinet installation document.

2. Install Flare

Flare is also based on boost. To install boost, you can refer to this Article: Detailed explanation of the compilation and installation steps of the boost library under Ubuntu.

The following are the steps to install 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

You need to do some configuration before running, you can refer to the Flare document: tutorial.

Install from Debian package

1. Install dependency packages

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. Install 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. Installing Flare

is very simple:

$ wget 'http://labs.gree.jp/data/source/flare_1.0.5-1_i386.deb
$ sudo dpkg -i flare_1.0.5-1_i386.deb


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn