thrift0.7.0在ubuntu11.04/11.10和centos6上的安装测试

参照 
http://jnb.ociweb.com/jnb/jnbJun2009.html  
http://wiki.apache.org/thrift/GettingUbuntuPackages  

安装 ant和ivy 
Shell代码   收藏代码
  1. sudo tar xzvf apache-ant-1.8.2-bin.tar.gz -C /usr/local  
  2. sudo tar xzvf apache-ivy-2.2.0-bin-with-deps.tar.gz -C /usr/local  

编辑profile 
Shell代码   收藏代码
  1. sudo vim /etc/profile  

在内容里添加 
Shell代码   收藏代码
  1. export ANT_HOME=/usr/local/apache-ant-1.8.2  
  2. PATH=$ANT_HOME/bin:$PATH  

在ivy目录下拷贝ivy的jar包到ant lib 
Shell代码   收藏代码
  1. sudo cp ivy-2.2.0.jar ../apache-ant-1.8.2/lib/  


安装ubuntu需要的thrift包,并确定自己需要支持的语言,ubuntu下java,c++,python,erlang,ruby 
Shell代码   收藏代码
  1. sudo apt-get install libboost-dev libboost-test-dev libevent-dev automake libtool flex bison pkg-config g++  
  2. ./configure --prefix=/usr/local/ --with-boost=/usr/local --without-csharp --without-perl --without-php --without-php_extension --without-haskell  
  3. make  
  4. make install  

centos下c++,c,java,python,注意C语言支持需要加上 --with-c_glib 
Shell代码   收藏代码
  1. yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel glibc-devel glibc glib2 glib2-devel event event-devel openssl openssl-devel  
  2. ./configure --prefix=/usr/local/ --with-boost=/usr/local --without-csharp --without-perl --without-php --without-php_extension --without-haskell --with-c_glib  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值