Trouble getting started

Hi,

Let me preface this by saying that I’m no Linux expert, nor do I know Python, so if I’ve failed to do something obvious, please let me know. I’m running on Ubuntu 12.04 (Precise).

I tried to first install Ansible out of the Github repo. Python 2.7 already appears to be installed. After I do the “source ./hacking/env-setup”, I do the “ansible all -m ping --ask-pass”, which results in an “ImportError: No module named jinja2”. I see on the Getting Started page that this is required, but it doesn’t provide me with instructions on how to get it. It only says “You will also want the following Python modules (installed via pip or perhaps via your OS package manager via slightly different names):”. Alas, I’m a novice, so I’m stuck without specific instructions.

I then tried using “pip” to install Ansible (again, being a novice, I’m just typing commands), and it ends with:

building ‘_yaml’ extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c ext/_yaml.c -o build/temp.linux-x86_64-2.7/ext/_yaml.o

ext/_yaml.c:4:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command ‘gcc’ failed with exit status 1

And darned if I know how to troubleshoot this.

Any suggestions? It seems the github repo way is probably better, but I don’t know how to install the dependent modules previously mentioned.

;ted

Hi Ted, if you run sudo apt-get -y install python-yaml python-paramiko python-jinja2 on a stock 12.04 host, it should get you the required packages to get started.