To use Thrift on a Debian Lenny based Host, add the following lines to the File /etc/apt/sources.list.d/thrift.list
deb http://www.bufferoverflow.ch/dist/thrift/debian stable contrib
deb-src http://www.bufferoverflow.ch/dist/thrift/debian stable contrib
and you get the following packages via apt-get:
libthrift-cil - CLI bindings for Thrift
libthrift-dev - Thrift C++ library (development headers)
libthrift-erlang - Erlang bindings for Thrift
libthrift-java - Java bindings for Thrift
libthrift-perl - Perl bindings for Thrift
libthrift-ruby - Ruby bindings for Thrift
libthrift0 - Thrift C++ library
python-thrift - Python bindings for Thrift
python-thrift-dbg - Python bindings for Thrift (debug version)
thrift-compiler - Compiler for Thrift definition files
Or download them individually here
https://www.bufferoverflow.ch/dist/thrift/debian/pool/contrib/t/thrift/
These packages are made based on THRIFT-71 patches
svn co https://svn.apache.org/repos/asf/incubator/thrift/tags/thrift-0.4.0
wget http://www.bufferoverflow.ch/dist/thrift/thrift-71_v7.patch
cd thrift-0.4.0
patch -p0 < ../thrift-71_v7.patch
chmod a+x debian/rules
dpkg-buildpackage -rfakeroot
or have a look on the Buildlog