Differences between revisions 4 and 5
Revision 4 as of 2008-10-31 18:23:22
Size: 850
Comment:
Revision 5 as of 2009-09-20 23:47:13
Size: 856
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
 1. If you haven't done so already [http://incubator.apache.org/thrift/download/ download a snapshot] of the Thrift source code and extract it. - [http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz Direct link to the snapshot]  1. If you haven't done so already [[http://incubator.apache.org/thrift/download/|download a snapshot]] of the Thrift source code and extract it. - [[http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz|Direct link to the snapshot]]
Line 14: Line 14:
Todd Lipcon who made the Erlang bindings for Thrift has made a helpful script, ThriftErlSkel, to create a skeleton of an Erlang application. It's worth a look: [http://github.com/toddlipcon/thrift_erl_skel/tree/master direct link] Todd Lipcon who made the Erlang bindings for Thrift has made a helpful script, ThriftErlSkel, to create a skeleton of an Erlang application. It's worth a look: [[http://github.com/toddlipcon/thrift_erl_skel/tree/master|direct link]]

Getting started

The Erlang code generated by Thrift uses a number of Thrift modules. These modules need to be compiled to be able to use the code generated by Thrift.

Building the Thrift modules in Linux

  1. If you haven't done so already download a snapshot of the Thrift source code and extract it. - Direct link to the snapshot

  2. Navigate to  lib/erl/  using the terminal of your choice

  3. Compile the Thrift modules into BEAM:

make

See also

Todd Lipcon who made the Erlang bindings for Thrift has made a helpful script, ThriftErlSkel, to create a skeleton of an Erlang application. It's worth a look: direct link

ThriftUsageErlang (last edited 2009-09-20 23:47:13 by localhost)