thrift0.7.0在ubuntu11.04/11.10和centos6上的安装测试

参照
http://jnb.ociweb.com/jnb/jnbJun2009.html
http://wiki.apache.org/thrift/GettingUbuntuPackages

安装 ant和ivy
sudo tar xzvf apache-ant-1.8.2-bin.tar.gz -C /usr/local
sudo tar xzvf apache-ivy-2.2.0-bin-with-deps.tar.gz -C /usr/local

编辑profile
sudo vim /etc/profile

在内容里添加
export ANT_HOME=/usr/local/apache-ant-1.8.2
PATH=$ANT_HOME/bin:$PATH

在ivy目录下拷贝ivy的jar包到ant lib
sudo cp ivy-2.2.0.jar ../apache-ant-1.8.2/lib/


安装ubuntu需要的thrift包,并确定自己需要支持的语言,ubuntu下java,c++,python,erlang,ruby
sudo apt-get install libboost-dev libboost-test-dev libevent-dev automake libtool flex bison pkg-config g++
./configure --prefix=/usr/local/ --with-boost=/usr/local --without-csharp --without-perl --without-php --without-php_extension --without-haskell
make
make install

centos下c++,c,java,python,注意C语言支持需要加上 --with-c_glib
yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel glibc-devel glibc glib2 glib2-devel event event-devel openssl openssl-devel
./configure --prefix=/usr/local/ --with-boost=/usr/local --without-csharp --without-perl --without-php --without-php_extension --without-haskell --with-c_glib

猜你喜欢

转载自jinghong.iteye.com/blog/1102535