我最近转移到使用OSX来pipe理我的Linux机器,所以我很新的OSX上使用Linux程序。
我想用Ansible的Vagrant引导我的开发环境,所以我需要先安装它。
但是我发现了两种在OSX上安装Ansible的方法:
点: http : //devopsu.com/guides/ansible-mac-osx.html
Homebrew: https : //github.com/Homebrew/homebrew/blob/master/Library/Formula/ansible.rb
我已经使用pip方法安装了Ansible,因为我首先遇到了这个指南。
这两种方法有什么优点和缺点? 我应该使用点或自制软件安装Ansible吗?
我发现易于安装会干扰自制软件:
Warning: /usr/bin occurs before /usr/local/bin This means that system-provided programs will be used instead of those provided by Homebrew. The following tools exist at both paths: easy_install easy_install-2.7
我想你会发现最好通过点安装它
来自文档;
最新新闻稿Via Pip
Ansible可以通过Python包pipe理器“pip”来安装。 如果您的Python版本中尚未提供“点子”,则可以通过以下方式获得点子:
$ sudo easy_install pip
然后安装Ansible:
$ sudo pip install ansible
使用virtualenv的读者也可以在virtualenv下安装Ansible,尽pipe我们build议不要担心,只需在全球安装Ansible即可。 不要直接使用easy_install来安装ansible。
这将使您可以轻松地进行更新,因为它在brew之前获得了最新的版本。
我从来没有任何麻烦与家酿。 在我看来,它是现在Mac OS X中最好的包pipe理器types工具(但也许并不像MacPorts那样完整)。
以下是在Mac OS X Mavericks上安装Homebrew的有用指南。
然后简单地运行
brew install ansible