flare-1.0.18 Centos 源码安装记录

1. 安装HashKit

[root@flare71 libmemcached-1.0.9]# wget http://download.tangent.org/libmemcached-1.0.9.tar.gz
[root@flare71 libmemcached-1.0.9]# tar zxf libmemcached-1.0.9.tar.gz       
[root@flare73 libmemcached-1.0.9]# cd libmemcached-1.0.9   
[root@flare73 libmemcached-1.0.9]# yum install gcc44 gcc44-c++ libstdc++44-devel  
[root@flare73 libmemcached-1.0.9]# export CC=/usr/bin/gcc44   
[root@flare73 libmemcached-1.0.9]# export CXX=/usr/bin/g++44  
[root@flare73 libmemcached-1.0.9]# yum install libevent-devel
[root@flare73 libmemcached-1.0.9]# ./configure
[root@flare73 libmemcached-1.0.9]# make
[root@flare73 libmemcached-1.0.9]# make install
[root@flare73 libmemcached-1.0.9]#  ll /usr/local/lib
总计 4524
-rw-r--r-- 1 root root  240000 04-15 16:12 libhashkit.a
-rwxr-xr-x 1 root root     960 04-15 16:12 libhashkit.la

[root@flare73 libmemcached-1.0.9]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib

[root@flare73 libmemcached-1.0.9]# /sbin/ldconfig

2. 安装boost

[root@flare73 flare]# wget http://nchc.dl.sourceforge.net/project/boost/boost/1.41.0/boost_1_41_0.tar.bz2


yum -y  install gcc-c++

tar -jxvf boost_1_41_0.tar.bz2

./bootstrap.sh --prefix=/opt/flare/boost

./bjam install


3. 安装TC

wget  http://httpsqs.googlecode.com/files/tokyocabinet-1.4.41.tar.gz

tar -zxvf tokyocabinet-1.4.41.tar.gz
 
 ./configure --prefix=/opt/flare/tc
 
configure: error: bzlib.h is required
yum -y install bzip2-devel
 
configure: error: zlib.h is required
yum -y install  zlib-devel
 
./configure  --with-zlib=/usr/include --prefix=/opt/flare/tc
 
make
make install

将/usr/local/lib添加到/etc/ld.so.conf文件中,然后在命令行执行/sbin/ldconfig
 
include ld.so.conf.d/*.conf
/opt/flare/tc/lib
/opt/flare/boost/lib

如果出现/opt/flare/flare/bin/flarei: error while loading shared libraries: libtokyocabinet.so.9: cannot open shared object file: No such file or directory

ln -s /opt/flare/tc/lib/libtokyocabinet.so.9 /usr/lib/libtokyocabinet.so.9
 
ln -s /opt/flare/tc/lib/libtokyocabinet.so.9 libtokyocabinet.so.9  

4. 安装flare1.0.18


[root@flare71 ~]# yum -y install automake
 
[root@flare71 ~]# yum -y install libtool


[root@flare73 flare-1.0.18]# ./autogen.sh
[root@flare73 flare-1.0.18]# ./configure --with-boost=/opt/flare/boost --with-tokyocabinet=/opt/flare/tc --prefix=/opt/flare/flare
[root@flare73 flare-1.0.18]# make
[root@flare73 flare-1.0.18]# make install


5. 集群配置:
参考 flare-1.0.9


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值