Ansible Install Error: build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory

Got this error when performing Ansible installation from source.

Installed /usr/lib/python2.7/site-packages/ansible-2.3.0-py2.7.egg
Processing dependencies for ansible==2.3.0
Searching for cryptography>=1.1
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 1.7.2
Downloading https://pypi.python.org/packages/99/df/71c7260003f5c469cec3db4c547115df39e9ce6c719a99e067ba0e78fd8a/cryptography-1.7.2.tar.gz#md5=fade66de437392ed1ba6980768626204
Processing cryptography-1.7.2.tar.gz
Writing /tmp/easy_install-KJvKPP/cryptography-1.7.2/setup.cfg
Running cryptography-1.7.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-KJvKPP/cryptography-1.7.2/egg-dist-tmp-WfYlb2
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
 #include 
                              ^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
make: *** [install] Error 1

Needed to install an openssl development package to fix.

yum install openssl-devel

Then do a “make clean”, “make”, then “make install” to try again.

Be the first to comment

Leave a Reply