Ubuntu Debian Linux快速安装Thrift

前端之家收集整理的这篇文章主要介绍了Ubuntu Debian Linux快速安装Thrift前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

获取Thrift源

去Apache Thrift官方网站:https://thrift.apache.org/download

点击tar.gz的包下载链接进入:

复制上图其中一个红框中的地址到浏览器:

进入debian目录:

一个完整的源目录至少包含dists和pool两个目录,否则都是无效的源,进入dist目录:

这些就是Thrift的版本,0.9.3正好是我需要的。继续点进去有InRelease Release Release.gpg main,这些都是软件的分类

至此就获取了Thrift的源:http://dl.bintray.com/apache/thrift/debian

安装Thrift

vim /etc/apt/sources.list 在里面加上一行:

deb http://dl.bintray.com/apache/thrift/debian 0.9.3 main

然后:

apt-get remove thrift-compiler  # 卸载老版本的Thrift 
apt-get update #更新源列表,换源后必须执行
apt-get install thrift-compiler  #ok 

apt-get update时可能会遇到的问题,参考:
The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY

原文链接:https://www.f2er.com/ubuntu/349408.html

猜你在找的Ubuntu相关文章