Installing Thrift Interface on Debian
So I’m getting Cassandra/Thrift up and running and came across a few dependencies with the install. Here’s the fix if you encounter either the ` PKG_CHECK_MODULES(MONO, mono >= 1.2.6, have_mono=yes, have_mono=no)’ or missing yac configure and make errors.
If you’re compiling and seeing the MONO errors prior to having installed pkg-configure, just run ./cleanup.sh before running through the instructions below.
- Before compiling the Thrift source, make sure you at least have these packages installed
$ sudo apt-get install automake libtool pkg-config libboost-dev byacc mono-2.0-service flex
- This should also mostly apply to Ubuntu, though I noticed libboost1.35-dev was required (at the time of writing)
- From the directory you’ve unpacked Thrift into, just this will do, though check the configure for options
$ ./bootstrap.sh $ ./configure $ sudo make $ sudo make install
- No errors?
$ thrift -version Thrift version 20080411-exported
SEXY!
| Print article | This entry was posted by admin on September 30, 2009 at 19:49, and is filed under Sysadmin. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |


about 3 months ago
Thank you a lot for this post, but I’m getting an error:
checking for boostlib >= 1.33.1… configure: error: We could not detect the boost libraries (version 1.33 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to –with-boost option. If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.
I’ve tried everything to set the boost lib path, but it still doesn’t get it. any idea?
I’m using Debian Lenny and Thrift is at version 2.0.
I’ve found libboost at /usr/include/boost and the version is the 1.3.4
about 3 months ago
I haven’t seen this problem (tested on lenny w/boost 1.3.4), so would probably just try to isolate the issue, here’s a little shell script which does the boost lib detection :
~findboost.sh~
… I’m guessing there are no permission errors etc?
about 3 months ago
The script found boost with no problem.
I’ve tryed something meanwhile, I’ve downloaded the boost source (1.43.1) and compiled it.
Once it’s not installed, I’ve exported the $BOOST_ROOT variable and the ./configure did all ok.
Now I’m having problems with make, it outputs several errors, but the first one seems to be about the libboost.
And once I’m installing it as a root user, I don’t believe that it’s a permission problem, unless boost has a 000 default permission.
Any other ideas?
about 3 months ago
I just came across this same issue on Debian Lenny. I found if you install libboost1.35-dev (`sudo apt-get install libboost1.35-dev`) instead you do not get the error during the ./configure phase of the install.
about 2 weeks ago
It is also necessary to install the python-dev packages with
sudo apt-get python-dev