CentOS安装thrift
来源:互联网 发布:linux cp 排除文件夹 编辑:程序博客网 时间:2024/04/30 11:43
下载thrift依赖的东西
yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel crypto-utils
openssl openssl-devel
下载最新版本thrift,网址:http://thrift.apache.org
tar -zxvf thrift-0.9.0.tar.gz
移到默认安装目录
cp -r thrift-0.9.0 /usr/local/ (默认安装目录?否则可能影响到生成的thrift bin文件虽然有生成,但是找不到,安装在这里的话可以生成的thrift就在/usr/local/bin里了,这时终端输入thrift就有了,否则command not found.当然/usr/local/bin原先应该设置在$PATH里)
cd /usr/local/thrift-0.9.0
./bootstrap.sh (有You should add the contents of `./aclocal/libtool.m4' to `aclocal.m4'. glibtoolize: You should add the contents of `./aclocal/ltoptions.m4' to `aclocal.m4'. glibtoolize ...关于libtoolize,不管,继续下面的命令)
./configure --with-boost=/usr/include/ 因为boost安装在/usr/include里?
非常重要:可能这里有一个关于libtool的错误Version mismatch error. This is libtool 2.2.4, but the libtool: definition of this LT_INIT comes from libtool 2.2.6. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 libtool: and run autoconf again.
make
make install
在终端输入thrift,有下面的东东,ok,install thrift success.
thrift bin文件在/usr/local/bin里
Usage: thrift [options] file
Options:
-version Print the compiler version
-o dir Set the output directory for gen-* packages
(default: current directory)
-I dir Add a directory to the list of directories
searched for include directives
-nowarn Suppress all compiler warnings (BAD!)
- CentOS安装thrift
- CentOS安装thrift
- CentOs安装Thrift
- Thrift + centos 安装
- Centos 6.5 下安装Thrift
- centos 环境安装 及 thrift安装
- 在linux(CentOS)上安装Thrift+Scribe
- 笔记:在CentOS 6.8环境下安装thrift
- thrift安装
- thrift安装
- thrift安装
- thrift安装
- thrift安装
- thrift 安装
- thrift 安装
- thrift安装
- Thrift 安装
- thrift 安装
- Python下的机器学习工具scikit-learn(学习笔记2--官方实例程序)
- ARM中断分发
- <context-param>与<init-param>的区别与作用
- HDU 1426 Sudoku Killer
- WinCE多线程并发 同步安全不容忽视
- CentOS安装thrift
- 在Eclipse中配置tomcat
- hadoop全套免费视频
- arm架构mmu
- 如何向App Store提交应用
- Android RecoverSystem 类
- linux gdb 调试多线程 多进程 显示宏
- 51单片机模拟电梯汇编程序
- 视频监控分辨率CIF、DCIF、D1格式的简介