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 |