ubuntu安装Thrift

原创 2010年05月31日 22:40:00

 

facebook开源项目thrift安装记录
2010-05-29 23:47
thrift homepage : http://incubator.apache.org/thrift/


1.wget http://apache.etoak.com/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz

2.cuican@ubuntu:~/opensource$ tar xvf thrift-0.2.0-incubating.tar.gz 

3.
sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
sudo apt-get install autoconf
sudo apt-get install autotools-dev
sudo apt-get install flex
sudo apt-get install libtool
sudo apt-get install byacc

4.cd thrift-0.2.0/
./bootstrap.sh
./configure --with-boost=/usr/local 
make && make install

具体请参看README文件;



安装过程中出现的错误:
1.configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
解决办法:sudo apt-get install autotools-dev

2.../../ylwrap: line 109: yacc:找不到命令
解决办法:sudo apt-get install byacc

3.required file `./ltmain.sh' not found
解决办法: sudo apt-get install libtool

4.
warning: underquoted definition of AM_PATH_LIBMCRYPT
run info '(automake)Extending aclocal'
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
解决办法:sudo apt-get autoremove libmcrypt


5. /bin/sh ../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  -I/usr/include -I./src  -Wall -g -O2 -MT Thrift.lo -MD -MP -MF .deps/Thrift.Tpo -c -o Thrift.lo `test -f 'src/Thrift.cpp' || echo './'`src/Thrift.cpp
../../libtool: line 841: X--tag=CXX: command not found
../../libtool: line 874: libtool: ignoring unknown tag : command not found
../../libtool: line 841: X--mode=compile: command not found
../../libtool: line 1008: *** Warning: inferring the mode of operation is deprecated.: command not found
../../libtool: line 1009: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../../libtool: line 1152: Xg++: command not found
../../libtool: line 1152: X-DHAVE_CONFIG_H: command not found
../../libtool: line 1152: X-I.: command not found
../../libtool: line 1152: X-I../..: No such file or directory
../../libtool: line 1152: X-I/usr/include: No such file or directory
../../libtool: line 1152: X-I./src: No such file or directory
../../libtool: line 1152: X-Wall: command not found
../../libtool: line 1152: X-g: command not found
../../libtool: line 1152: X-O2: command not found
../../libtool: line 1152: X-MT: command not found
../../libtool: line 1152: XThrift.lo: command not found
../../libtool: line 1152: X-MD: command not found
../../libtool: line 1152: X-MP: command not found
../../libtool: line 1152: X-MF: command not found
../../libtool: line 1152: X.deps/Thrift.Tpo: No such file or directory
../../libtool: line 1152: X-c: command not found
../../libtool: line 1205: XThrift.lo: command not found
../../libtool: line 1210: libtool: compile: cannot determine name of library object from `': command not found
make[3]: *** [Thrift.lo] Error 1
解决办法:libtool的问题,目前只在服务器上有这个问题
1).卸载原服务器的libtool
2).下载最新的libtool安装,wget 
http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz.
3). ./configure ;make;make install
4). 重新thrift安装步骤的第四步即可

6../CppServer: error while loading shared libraries: libthrift.so.0: cannot open shared object file: No such file or directory
解决办法: sudo ln -s /usr/local/lib/libthrift.so.0   /usr/lib/libthrift.so.0

 

JavaTM 2 SDK, 标准版, 1.4版 新特性及增强内容概要

JavaTM 2 SDK, 标准版, 1.4版新特性及增强内容概要目录JD018cheramicherami@163.net翻译Java 2 SDK 1.4标准版的新特性如...
  • cherami
  • cherami
  • 2001-09-11 16:08:00
  • 872

Thrift安装介绍

Thrift安装介绍,包含安装流程,以及遇到的一些问题与处理办法。
  • san1156
  • san1156
  • 2014-11-15 15:47:14
  • 3600

Mac上安装Thrift

现在在做一个多屏互动项目,需要Iphone设备与终端管理系统通信。 调研了下,决定使用Thrift框架实现通信模块。准备在Mac上安装Thrift,支持Objective-c和Java。 环境:M...
  • blue_jjw
  • blue_jjw
  • 2013-06-21 17:34:18
  • 12772

Thrift安装与使用

centos   jdk6  php5.3以上  python2.6   thrift0.9.0 让thrift支持java php python,所以要安装java php python(linu...
  • ajaxuser
  • ajaxuser
  • 2013-06-04 12:26:04
  • 7882

thrift安装记录

thrift homepage : http://incubator.apache.org/thrift/ 1.cd /home/panbook/workspace/boost_project(ps...
  • shupan001
  • shupan001
  • 2010-08-11 15:56:00
  • 6755

ubuntu下thrift的安装

一、ubuntu下thrift的安装 1.下载源代码 http://thrift.apache.org/download/ 下载最新版本thrift-0.8.0.tar.gz ...
  • u010994304
  • u010994304
  • 2016-02-29 21:44:29
  • 3774

ubuntu下Thrift快速入门

一、thrift简介 自己百度谷歌一下把。 二、thrift安装 (1)安装一些必要库 sudo apt-get install libboost-dev libboost-test-...
  • wen294299195
  • wen294299195
  • 2014-09-26 16:50:17
  • 1638

Thrift官方安装手册(译)

本篇是Thrift官网安装文档的翻译。介绍了Thrift安装的环境要求,以及在centos,Debian/Ubuntu,OS X和Windows的不同系统下的安装过程。并提出了一些安装过程中可能遇到的...
  • qq910894904
  • qq910894904
  • 2014-11-15 00:30:52
  • 26865

crontab:command not found

      近期要用crontab执行一些命令:定期让系统时间和硬件时间同步。因为我总是发现我的linux服务器时间会变慢,最后想到同步这个办法。      一开始,我将命令:*/1 * * * * ...
  • hzcyclone
  • hzcyclone
  • 2010-09-22 11:16:00
  • 2725

ubuntu安装Thrift

facebook开源项目thrift安装记录2010-05-29 23:47thrift homepage : http://incubator.apache.org/thrift/1.wget ht...
  • imzkz
  • imzkz
  • 2010-05-31 22:40:00
  • 7789
收藏助手
不良信息举报
您举报文章:ubuntu安装Thrift
举报原因:
原因补充:

(最多只允许输入30个字)