接口:https://gowalker.org/github.com/apache/thrift/lib/go/thrift

参考文件:https://cong.im/2018/05/14/other/rpc/thrift/

go 环境安装

wget -c https://studygolang.com/dl/golang/go1.15.1.linux-amd64.tar.gz
tar -cvf go1.15.1.linux-amd64.tar.gz -C /usr/local/

配置go环境变量

编译环境安装

yum install libevent-devel automake libtool flex bison gcc ant make boost* lrzsz gcc-c++ git python-devel

thrift 编译安装(只编译go环境)

wget http://www-us.apache.org/dist/thrift/0.10.0/thrift-0.10.0.tar.gz
tar -xvf thrift-0.10.0.tar.gz
cd thrift-0.10.0
./configure --without-java --with-go --prefix=/usr
make -j12
make install

 

相关文章:

  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案