linux php thrift,linux下安装Thrift0.5.0 | 学步园

1、./configure --with-boost=/usr/include

2、make

3、make install

4、运行thrift观察是否出现成功

[root@docong thrift-0.5.0]# thrift

Usage: thrift [options] file

Options:

-version Print the compiler version

-o dir Set the output directory for gen-* packages

(default: current directory)

-I dir Add a directory to the list of directories

searched for include directives

-nowarn Suppress all compiler warnings (BAD!)

-strict Strict compiler warnings on

-v[erbose] Verbose mode

-r[ecurse] Also generate included files

-debug Parse debug trace to stdout

--gen STR Generate code with a dynamically-registered generator.

STR has the form language[:key1=val1[,key2,[key3=val3]]].

Keys and values are options passed to the generator.

Many options will not require values.

Available generators (and options):

as3 (AS3):

bindable: Add [bindable] metadata to all the struct classes.

cocoa (Cocoa):

log_unexpected: Log every time an unexpected field ID or type is encountered.

cpp (C++):

pure_enums: Generate pure enums instead of wrapper classes.

dense: Generate type specifications for the dense protocol.

include_prefix: Use full include paths in generated files.

csharp (C#):

erl (Erlang):

hs (Haskell):

html (HTML):

java (Java):

beans: Members will be private, and setter methods will return void.

private-members: Members will be private, but setter methods will return 'this' like usual.

nocamel: Do not use CamelCase field accessors with beans.

hashcode: Generate quality hashCode methods.

javame (Java ME):

js (Javascript):

ocaml (OCaml):

perl (Perl):

php (PHP):

inlined: Generate PHP inlined files

server: Generate PHP server stubs

autoload: Generate PHP with autoload

oop: Generate PHP with object oriented subclasses

rest: Generate PHP REST processors

py (Python):

new_style: Generate new-style classes.

twisted: Generate Twisted-friendly RPC services.

rb (Ruby):

st (Smalltalk):

xsd (XSD):

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值