thrift安装 & grpc
要用thrift必须先安装boost,thrift依赖boost库
- 安装boost
- ./bootstrap.sh
- sudo ./b2
- sudo ./b2 install
1、下载thrift源代码
git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
git checkout 0.9.3
2、编译并安装
安装依赖
apt-get install automake
apt-get install libssl-dev
apt-get install byacc
apt-get install bison
apt-get install flex
apt-get install libevent-dev
生成编译文件
cd thrift
./bootstrap.sh
编译前配置,禁用java和python, 安装目录设为/usr/lib,而不是默认的/usr/local/lib
./configure --libdir=/usr/lib --without-java --without-python
centos 这里看可信度高
http://m.aluaa.com/articles/2018/11/19/1542623206298.html
https://java-er.com/blog/install-thrift/
thrift问题是真的多啊
https://blog.51cto.com/speakingbaicai/1160378