HBase Thrift 0.5.0 + PHP 5 安裝設定

原文地址:

http://blog.kfchph.com/20-hbase-thrift-050-php5/

系統環境與套件版本

  • 作業系統環境: Ubuntu 9.04 Server x2
  • Hadoop 0.20.2 Fully-distributed modes
  • HBase 0.89.20100621 Fully-distributed modes
  • Thrift 0.5.0

1. 下載 Thrift 0.5.0

1 wgetftp://ftp.stu.edu.tw/Unix/Web/apache//incubator/thrift/0.5.0-incubating/thrift-0.5.0.tar.gz

2. 安裝 Thrift 相依套件

Thrift 需要 C++ 的 libboost 函式庫, 以及 flex, libtool 方能運作

1 sudo apt-get install libboost-dev automake libtool flex bison g++

3. 安裝需要的程式語言, 這裡安裝 Python & PHP

注意, 不能裝 php5, 不然會沒有設定檔

1 sudo apt-get install python python-all-dev
2 sudo apt-get install php5-dev

4. 於 Thrift 目錄執行環境設定檢測

1 cd thrift0.5.0/
2$ ./configure

正常應輸出:

01thrift 0.5.0
02 
03Building code generators ..... : cpp java as3 csharp py rb perl php erl cocoa st ocaml hs xsd html js javame
04 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值