从源码安装
1. 安装 Tokyo Cabinet
Flare 基于 Tokyo Cabinet. 安装 Tokyo Cabinet 很简单,可参考: Tokyo Cabinet 安装文档.
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包安装
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
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
很简单:
$ 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.
- 本文固定链接: https://zxbcw.cn/post/1330/
- 转载请注明:必须在正文中标注并保留原文链接
- QQ群: PHP高手阵营官方总群(344148542)
- QQ群: Yii2.0开发(304864863)