blob: 26a53f7a138aa820fda7d1a5b0b7bcb2785bad6a [file] [log] [blame]
Mark Slee57cc25e2007-02-28 21:43:54 +00001Thrift (Thrift IDL and RPC tool)
2Version 1.0 (22 August 2006)
Marc Slemko9de5a5c2006-08-23 22:34:00 +00003
4Mark Slee (mcslee@facebook.com)
Mark Slee57cc25e2007-02-28 21:43:54 +00005Aditya Agarwal (aditya@facebook.com)
Marc Slemko9de5a5c2006-08-23 22:34:00 +00006Marc Kwiatkowski (marc@facebook.com)
7
8$Header$
9
Mark Slee57cc25e2007-02-28 21:43:54 +000010Thrift is distributed under the Thrift open source software license.
11Please see the included LICENSE file.
Marc Slemko9de5a5c2006-08-23 22:34:00 +000012
13Introduction
14============
15
Mark Slee57cc25e2007-02-28 21:43:54 +000016Thrift is a lightweight, language-independent software stack with an
17associated code generation mechanism for RPC.
Marc Slemko9de5a5c2006-08-23 22:34:00 +000018
19Requirements
20============
Mark Slee57cc25e2007-02-28 21:43:54 +000021Thrift requires boost shared pointers from boost-1.33.1 or greater,
22see http://www.boost.org/libs/smart_ptr/smart_ptr.htm
Marc Slemko9de5a5c2006-08-23 22:34:00 +000023
24Resources
25=========
26
27More information about Thrift can be obtained on the Thrift webpage at:
28
29 http://developers.facebook.com/thrift
30
31Acknowledgments
32===============
33
34Thrift was inspired by pillar, a lightweight RPC tool written by Adam D'Angelo
35
36INSTALLATION
37============
38
Mark Slee57cc25e2007-02-28 21:43:54 +000039If you are building from the first time out of the source repository, you will
40need to generate the configure scripts. From the top directory, do:
Marc Slemko9de5a5c2006-08-23 22:34:00 +000041
42 ./bootstrap.sh
43
Mark Slee57cc25e2007-02-28 21:43:54 +000044Once the configure scripts are generated, thrift can be configured.
45From the top directory, do:
Marc Slemko9de5a5c2006-08-23 22:34:00 +000046
47 ./configure
48
Mark Slee57cc25e2007-02-28 21:43:54 +000049You may need to specify the location of the boost files explicitly.
50If you installed boost in /usr/local, you would run configure as follows:
Marc Slemko9de5a5c2006-08-23 22:34:00 +000051
52 ./configure --with-boost=/usr/local
53
Mark Slee57cc25e2007-02-28 21:43:54 +000054Note that by default the thrift C++ library is built with no debugging symbols
55included. If you would like debugging symbols during development work, run:
Mark Slee29050782006-09-29 00:12:30 +000056
Mark Slee57cc25e2007-02-28 21:43:54 +000057 ./configure CFLAGS='-g -O2'
Mark Slee29050782006-09-29 00:12:30 +000058
Marc Slemko9de5a5c2006-08-23 22:34:00 +000059Run ./configure --help to see other configuration options
60
61Make thrift
62
63 make
64
65From the top directory, become superuser and do:
66
67 make install