Around this time, I felt that it would be easier to use a Mac as an Ansible server. Anyway, Python is included from the beginning, so I installed Ansible on my Mac.
Check the version for the time being.
$ python --version
Python 2.7.5
Mervelicks seems to have 2.7.5 from the beginning, so it's OK.
Official reference. http://pip.readthedocs.org/en/latest/installing.html
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
Easy.
First, put in what Ansible depends on.
Somehow, it seems that the behavior of clang has changed from 5.1 of Xcode, and it seems that it will not work unless you add a long flag like the one below.
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future
Reference: Updated Redmine of MacOSX 10.9 to 2.5.0 --Basic http://d.hatena.ne.jp/rabbit2go/20140316/1394946822
That's why I installed the one that depends on it.
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install paramiko PyYAML jinja2 httplib2
And I installed Ansible.
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install ansible
Finished smoothly. It was easy because the clang issue was resolved fairly easily.
Recommended Posts