Thrift 0.9.0编译安装

1、依赖的库

经过试验,发现目前0.9.0依赖如下的库:

# Boost
sudo apt-get install libboost-dev 
# Java 和 ant
sudo apt-get install 
sudo apt-get install ant
# OpenSSL
sudo apt-get install libssl-dev
# Python-dev
sudo apt-get install python-dev

2、配置

这里我只需要使用Java、C++、Python的。

./configure --with-cpp --with-python  --with-boost --with-java --without-csharp  --without-erlang --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go

3、编译

make

如果中途出现maven-ant-tasks-2.1.3.jar无法下载,可以从这个地址下载并拷贝到thrift-0.9.0/lib/java/build/tools/:

http://download.csdn.net/detail/lifetragedy/4784048

类似,如果某些库从maven的Repo下载不下来,请手动从这里搜索,下载放到thrift-0.9.0/lib/java/build/lib下,并顺便问候下方校长。

http://search.maven.org/

 

1 thought on “Thrift 0.9.0编译安装

Leave a Reply

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