...
- Change to the thrift directory
- Install build dependencies.
- On Ubuntu:
No Format sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
- On RHEL 5 or CentOS 5:
No Format sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel
- On Ubuntu:
- Configure and build Thrift:
No Format ./configure make
- Build the PHP Thrift interface for Cassandra:
No Format ./compiler/cpp/thrift -gen php ../PATH-TO-CASSANDRA/interface/cassandra.thrift
- Copy the include files to a useful place (per the Cassandra "Getting Started" guide):
No Format sudo mkdir -p /usr/share/php/Thrift sudo cp -R gen-php/ /usr/share/php/Thrift/packages/ sudo cp -R lib/php/src/* /usr/share/php/Thrift/
...