HBase Thrift 0.5.0 + PHP 5 安裝設定
Thrift 需要 C++ 的 libboost 函式庫, 以及 flex, libtool 方能運作 注意, 不能裝 php5, 不然會沒有設定檔 正常應輸出:原文地址:
http://blog.kfchph.com/20-hbase-thrift-050-php5/系統環境與套件版本
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 相依套件
1
$?sudo?apt-get?install?libboost-dev automake libtool flex bison g++
3. 安裝需要的程式語言, 這裡安裝 Python & PHP
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
01
thrift 0.5.0
02
?
03
Building code generators ..... : cpp java as3 csharp py rb perl php erl cocoa st ocaml hs xsd html js javame
04
?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号