pip install ansible on Ubuntu 12.04

427 views
Skip to first unread message

Jharrod LaFon

unread,
May 8, 2014, 5:00:33 PM5/8/14
to ansible...@googlegroups.com
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

James Cammarata

unread,
May 8, 2014, 5:51:35 PM5/8/14
to ansible...@googlegroups.com
The only other way to get around that dependency would be to install pycrytpo/keyczar via your package management system.


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/26c3565e-9835-4ad2-87e6-49aa9a301d3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael DeHaan

unread,
May 9, 2014, 7:51:16 PM5/9/14
to ansible...@googlegroups.com
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.



Reply all
Reply to author
Forward
0 new messages