Installing the required packages on Ubuntu
Required packages
sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
Then install the Java JDK of your choice. Type javac to see a list of available packages, pick the one you prefer and apt-get install it.
Optional packages
Some other packages depend on what languages you want Thrift to support. For ruby, install ruby-dev.
Ubuntu 8.10 and configure
Note If you are using thrift from subversion/git after 2008-12-22, this issue is resolved.
Before THRIFT-208, Thrift's configure script assumes that /bin/sh is actually /bin/bash. Since on Ubuntu 8.10 /bin/sh is /bin/dash, the configure script fails.
There are two possible workarounds:
Workaround 1 (non invasive): set the environment variable CONFIG_SHELL before running configure
$ CONFIG_SHELL=/bin/bash ./configure
workaround 2 (invasive): symlink /bin/sh to /bin/bash
$ sudo ln -f -s /bin/bash /bin/sh $ ./configure
Unofficial packages
Fluidinfo is providing unofficial packages for Ubuntu 8.04 and 8.10 through its Launchpad PPA. If you want to build packages for the Debian-based distro of your choice, you can apply the latest patch at THRIFT-71.
See also
For more information on the requirements see: ThriftRequirements
For more information on building and installing Thrift see: ThriftInstallation