遇到各种问题,终于在CentOS下把thrift+Scribe装好了,记录一下安装过程:首先安装一个最新版本的autoconf,否则后面编译的时候会出问题(提示说autoconf版本要2.65以上才行)
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gztar xvf autoconf-2.69.tar.gzcd autoconf-2.69./configure --bindir=/usr/binmake && make install 更新依赖库yum install libevent libevent-develpython-develyum install gcc-c++yum install libtoolyum install automakeyum install byacc flex 安装boost(推荐选择1.45版本,否则后面会碰到问题,折腾)wget http://jaist.dl.sourceforge.net/project/boost/boost/1.45.0/boost_1_45_0.tar.gz
tar -xf boost_1_45_0.tar.gzcd boost_1_45_0./bootstrap.sh./bjam install --prefix=/usr/local/bootstrap 安装thriftwget --no-check-certificate https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz
tar xzf thrift-0.8.0.tar.gz cd thrift-0.8.0--with-php-config=/usr/local/php/bin/php-config./configure --with-boost=/usr/local/bootstrap/ --with-java --prefix=/usr/local/thriftmake && make install 安装fb303(注意,fb303是thrift的一个子目录,在thrift-0.8.0里面)
cd thrift-0.8.0/contrib/fb303./bootstrap.sh --prefix=/usr/local/thrift/fb303 --with-boost=/usr/local/bootstrap/ --with-thriftpath=/usr/local/thrift/./configure --prefix=/usr/local/thrift/fb303 --with-boost=/usr/local/bootstrap/ --with-thriftpath=/usr/local/thrift/ CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H" 安装Facebook-scribewget --no-check-certificate https://nodeload.github.com/facebook/scribe/tarball/mastertar xf facebook-scribe-63e4824.tar.gzcd facebook-scribe-63e4824export BOOST_ROOT=/usr/local/bootstrap/export LD_LIBRARY_PATH=/usr/local/thrift/lib:/usr/lib:/usr/local/lib:/usr/local/bootstrap/lib/./bootstrap.sh --prefix=/usr/local/scribe --with-boost=/usr/local/bootstrap/ --with-thriftpath=/usr/local/thrift/ --with-fb303path=/usr/local/thrift/fb303
注意,安装thrift或者scribe的时候,可能会遇到编译不过的问题thrift/protocol/TBinaryProtocol.tcc:147: error: there are no arguments to "htons" that depend on a template parameter, so a declaration of "htons" must be available需要自己修改一下文件:vim /usr/local/thrift/include/thrift/protocol/TBinaryProtocol.tcc在首行添加头文件引用: #include <arpa/inet.h>Linux脚本程序自动修改网卡配置文件中的MAC地址CentOS 6.0 minimal 安装 GNOME桌面环境相关资讯 Thrift Scribe
- CentOS下scribe日志分析工具安装 (03月01日)
- Thrift使用实例 (07/17/2014 15:47:41)
- Scribe配置文件解析 (07/23/2013 14:11:35)
| - Ubuntu下thrift 0.9.3编译安装 (01月14日)
- 服务开发框架 Thrift 0.9.1 发布 (08/22/2013 11:12:58)
- 大数据应用日志采集之Scribe 安装 (07/23/2013 14:00:44)
|
本文评论 查看全部评论 (0)