2017-01-30 75 views
0

直到几个月前,我已经做了很多次了。如何在macOS上通过自制软件安装Ansible20

这些步骤似乎已经改变,因为现在版本已被弃用?

1)brew tap homebrew/versions

2)brew search ansible

3)返回[email protected]作为一个选项

4)brew install ansible20

5)最后brew install homebrew/versions/ansible20

但是我现在得到如下回应

Warning: Use ansible20 instead of deprecated homebrew/versions/ansible20 Error: No available formula with the name "homebrew/core/ansible20" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.

是否/core/没有相同的公式?版本发生了什么?

+0

为什么要安装Ansible 2.0?为什么你想用Homebrew安装Ansible? – techraf

+1

我不知道你为什么问?在自制软件上使用软件包有什么问题吗? 我们需要ansible20来安装我们的Trellis。上述指令在过去几个月为我们工作。但由于版本已被弃用,它不再是一个选项 – ste

回答

1

您可以在核心中使用[email protected],代替ansible20

只需运行brew install [email protected]

摘自https://github.com/Homebrew/homebrew-versions

这丝锥反对,因为自制软件/核心已经开始支持多个版本。所有广泛使用,可建立的公式将被迁移到自制/核心。 在Versions文档中了解关于此迁移的更多信息。从http://docs.brew.sh/Versions.html

摘录(下称 “版本文档中的” 上面提到的)

在自制/版本GCC 6式被命名gcc6.rb并开始类Gcc6 <公式。在Homebrew/core中,这个相同的公式命名为[email protected]并开始GccAT6 <公式。

+0

完美!这是我正在寻找的。欢呼声平等! – ste