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

来源:互联网 发布:电脑桌面软件 编辑:程序博客网 时间:2024/06/10 15:58
参照 
http://jnb.ociweb.com/jnb/jnbJun2009.html 
http://wiki.apache.org/thrift/GettingUbuntuPackages 

安装 ant和ivy 
Shell代码  收藏代码
  1. sudo tar xzvf apache-ant-1.8.2-bin.tar.gz -C /usr/local  
  2. sudo tar xzvf apache-ivy-2.2.0-bin-with-deps.tar.gz -C /usr/local  

编辑profile 
Shell代码  收藏代码
  1. sudo vim /etc/profile  

在内容里添加 
Shell代码  收藏代码
  1. export ANT_HOME=/usr/local/apache-ant-1.8.2  
  2. PATH=$ANT_HOME/bin:$PATH  

在ivy目录下拷贝ivy的jar包到ant lib 
Shell代码  收藏代码
  1. sudo cp ivy-2.2.0.jar ../apache-ant-1.8.2/lib/  


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

centos下c++,c,java,python,注意C语言支持需要加上 --with-c_glib 
Shell代码  收藏代码
  1. 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  
  2. ./configure --prefix=/usr/local/ --with-boost=/usr/local --without-csharp --without-perl --without-php --without-php_extension --without-haskell --with-c_glib  
0 0
原创粉丝点击