如何安装Thrift

总的来讲,在Ubuntu上安装Thrift非常顺利。下面是最有用的一个在线文档:http://wiki.apache.org/thrift/GettingUbuntuPackages

下面是我的安装过程,依次是:安装python头文件、安装thrift依赖包、下载thrift包、解包、编译。(Some other packages depend on what languages you want Thrift to support. For ruby, install ruby-dev.)

sudo apt-get install python-dev
sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
wget http://apache.freelamp.com/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz
tar -zxvf thrift-0.2.0-incubating.tar.gz
cd thrift-0.2.0
./bootstrap.sh
./configure
sudo make
sudo make install

我在安装过程中遇到的其他问题:

  • 机器没装make,汗。sudo apt-get install make
  • burstnet比公司内自建的vps快多了,burstnet上make了三遍公司里的还没make完

Related posts

3 thoughts on “如何安装Thrift

  1. 是博客搜索里的第一吧?而且是中文博客搜索。
    Google还没那么抬举我,让刚发的文章就跑到搜索的第一。

  2. Pingback: 李新阳的博客 | lxy » BurstNet体验,以及VPN安装

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>