【问题标题】:Install newest version of thrift via apt-get or another way using ansible?通过 apt-get 或其他使用 ansible 的方式安装最新版本的 thrift?
【发布时间】:2026-02-03 01:35:01
【问题描述】:

我有兴趣在我的 ubuntu 系统上安装 thrift 0.9.2,以便我可以访问 fullcamel。我使用的存储库似乎只有 0.9.0 版本。我知道我可以从源代码构建,但我需要一种更容易自动化的方式来执行此操作,因为我需要能够将此版本作为 ansible 任务安装。目前,我有以下 ansible 任务:

- name: Install libthrift-java=0.9.0-1ubuntu1
  apt: name=libthrift-java=0.9.0-1ubuntu1 state=present

- name: Install thrift-compiler=0.9.0-3
  apt: name=thrift-compiler=0.9.0-3 state=present

【问题讨论】:

    标签: thrift ansible apt


    【解决方案1】:

    如果您想从较新的软件包安装 thrift,通常您可能希望使用 LaunchpadAnsible's apt_repository 添加更新的 repos 和软件包。但是,it doesn't look like thrift 0.9.2 is available on Launchpad

    或者,您可以对 the instructions given for installing Thrift from scratch 进行 ansibleize。

    【讨论】:

    • Thrift 0.9.2 是即将发布的版本。 IOW,尚未发布,但计划在不久的将来发布。
    • 现在 2 年后,github.com/apache/thrift/releases 显示 0.9.3 版本。无法通过 apt-get 获得 :(
    • @MikeGraf 已经两年了,原来的提问者还没有要求澄清或接受答案:)