CentOS安装thrift
来源:互联网 发布:话剧场景 知乎 编辑:程序博客网 时间:2024/05/21 06:41
下载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.8.0.tar.gz
移到默认安装目录
cp -r thrift-0.2.0 /usr/local/ (默认安装目录?否则可能影响到生成的thrift bin文件虽然有生成,但是找不到,安装在这里的话可以生成的thrift就在/usr/local/bin里了,这时终端输入thrift就有了,否则command not found.当然/usr/local/bin原先应该设置在$PATH里)
cd /usr/local/thrift-0.2.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.
这是由于libtool版本不一致引起的,终端输入libtool --version可以看出我们的版本是libtool 2.2.4(在/usr/bin里)。但是/usr/local/thrift-0.2.0里的libtool是2.2.6的,所以用/usr/bin的libtool复制到/usr/local/thrift-0.2.0中,覆盖原来的版本。再执行上面的./configure --with-boost=/usr/include/ 命令,ok~~
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 安装
- ORA-01779: cannot modify a column which maps to a non key-preserved table
- Android深入浅出之Binder机制
- 初学AS
- 设备模型、设备与驱动关联的全过程分析 platform_device platform_driver driver bus关系
- oralce case when then end 用法
- CentOS安装thrift
- 应用程序信息 -> “清除默认设置” 信息的保存位置
- HttpPost发送Json
- 移动web app开发——JO、 jQ mobile和Sencha touch技术对比
- AS3 前篇
- 稳定婚姻问题
- T.38 和传真的未来
- Lotus的JAVA与DOMINO通过LDAP集成方法!
- 呼叫中心人员管理功能的一点总结