python分布式日志收集系统_分布式日志收集系统scribe的安装

最近接到很多朋友说安装scribe比较麻烦总是失败,特此总结一下安装scribe的方法。下面是个安装过程,比较简单,因而没有特别描述。

1.系统版本:基于CentOS-6.3-x86_64

2.gcc

a)安装版本为4.4.6官方要求>=3.3.5,但低于4会有问题

b)g++ 如果g++的结果是no inputfiles表示已安装,不是则安装:

yum -y install gcc+ gcc-c++

3.flex

a)确认是否安装,无则yum -y install flex

4.pkgconfig

a)确认是否安装,无则yum -y install pkgconfig

5.m4

a)确认是否安装,无则yum -y install m4

6.python

a)安装版本为2.6.6

b)yum -y install python.x86_64

c)yum -y installpython-devel.x86_64

7.ruby

a)安装版本为1.8.7

b)yum -y install ruby.x86_64

c)yum -y install ruby-devel.x86_64

8.libevent(必须先与thrift安装,很重要)

a)安装版本为1.4.13

b)yum -y install libevent.x86_64

c)yum -y install libevent-devel.x86_64

9.openssl-devel

a)安装版本为1.0.0

b)yum -y install openssl.x86_64

c)yum -y installopenssl-devel.x86_64

10.bz2-devel

a)安装版本为1.0.5

b)yum -y install openssl.x86_64

c)yum -y install openssl-devel.x86_64

11.zlib-devel

a)安装版本为1.2.3

b)yum -y install zlib.x86_64

c)yum -y installzlib-devel.x86_64

12.bison

a)安装版本为2.4.1

b)yum -y install bison.x86_64

c)yum -y installbison-devel.x86_64

13.autoconf

a)安装版本为2.69 thrift要求>=2.65

b)wgetftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz (CentOS6.3yum版本不够高)

c)tar zxvf autoconf-2.69.tar.gz-C /usr/local/

d)cd /usr/local/autoconf-2.69/

e)./configure --prefix=/usr

f)make

g)make install

14.automake

a)安装版本为1.10thrift安装警告,要求>=1.9

b)wgethttp://ftp.gnu.org/gnu/automake/automake-1.10.tar.gz

c)tar zxvf automake-1.10.tar.gz-C /usr/local/

d)cd /usr/local/automake-1.10

e)./configure --prefix=/usr

f)make

g)make install

15.libtool

a)安装版本为2.24

b)wgethttp://ftp.gnu.org/gnu/libtool/libtool-2.2.4.tar.gz

c)tar zxvf automake-1.10.tar.gz -C/usr/local/

d)cd /usr/local/automake-1.10

e)./configure --prefix=/usr

f)make

g)make install

16.安装boost

a)安装版本为1.45.0官方版本要求>=1.36

b)确认系统中目前没有别的boost版本,有必须清除干净,否则多boost会有各种问题。在CentOS6.3虚拟机中预装了1.41:

rpm -e boost-system-1.41.0-11.el6_1.2.x86_64 –nodeps

rpm -e boost-filesystem-1.41.0-11.el6_1.2.x86_64 --nodeps

c)wgethttp://nchc.dl.sourceforge.net/project/boost/boost/1.45.0/boost_1_45_0.tar.gz

d)tar zxvf boost_1_45_0.tar.gz -C/usr/local/

e)cd /usr/local/boost_1_45_0

f)$./bootstrap.sh

$./bjam -s HAVE_ICU=1 --prefix=/usr/local/boost--includedir=/usr/local/boost/include --libdir=/usr/local/boost/lib

g)./bjaminstall --prefix=/usr/local/boost

h)export BOOST_ROOT=/usr/local/boost

export LD_LIBRARY_PATH=/usr/local/boost/lib:/usr/lib:/usr/local/lib

ldconfig

i)./bootstrap.sh

j)./bjam install

k)在/etc/profile中加入:

export BOOST_ROOT=/usr/local

export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib

source /etc/profile

17.thrift +fb303

a)安装版本为0.7.0官网要求>=0.5.0

c)tar zxvf thrift-0.7.0.tar.gz -C/usr/local/

d)cd /usr/local/thrift-0.7.0

e)chmod +x configure

f)./configure--with-boost=/usr/local/boost

g)make

h)make install

i)开始安装fb303 cd contrib/fb303

j)chmod +x bootstrap.sh

k)./bootstrap.sh --with-boost=/usr/local/boost/

l)./configure

m)Make

n)Make install

18.scribe

b)tar zxvffacebook-scribe-63e4824.tar.gz -C /usr/local/

c)cd facebook-scribe-63e4824

d)./bootstrap.sh--with-boost=/usr/local/boost--prefix=/usr/local/scribe

e)./configure --with-boost=/usr/local/boost--prefix=/usr/local/scribe

f) make

g) make install

至此,安装完成。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值