pip install ansible on Ubuntu 12.04

Hello,

I’ve recently attempted to upgrade my servers from Ansible 1.5.3 to 1.6.1, and I’ve noticed that the installation requirements have changed.

I used to be able to bootstrap a machine with a fresh install of Ubuntu 12.04 server to run Ansible by installing the Python dependencies like this:

$ apt-get install python-pip python-paramiko python-yaml python-jinja2 python-simplejson

$ pip install ansible==1.5.3

This no longer works, because Ansible now requires a C compiler:

$ pip install ansible==1.6.1

configure: error: no acceptable C compiler found in $PATH

The failure seems to arise from introducing a dependency on pycrypto in this commit: https://github.com/ansible/ansible/commit/0fefab66514ac10acaed754793df3106fca4c4a8

Will there be no option to install Ansible without installing gcc?

Thanks,

-Jharrod

The only other way to get around that dependency would be to install pycrytpo/keyczar via your package management system.

The introduction of setuptools here actually solves another problem – that on Enterprise Linux the pycrypto is too old.

To fix this, the AWESOME folks at the Fedora project packaged a newer pycrypto for EPEL, and this code allows that to be slurped in.

So, yes, you’ll need to “apt-get install gcc” or equivalent.

C is good for you, though, so I wouldn’t worry about it. C is for Cookie. Cookie Cookie Cookie starts with C.