Skip to content

Instantly share code, notes, and snippets.

@akkie
Last active March 26, 2019 18:37
Show Gist options
  • Save akkie/c6759b32ebec079583b73edae879bfc3 to your computer and use it in GitHub Desktop.
Save akkie/c6759b32ebec079583b73edae879bfc3 to your computer and use it in GitHub Desktop.
Install ansible on msys2
pacman -S python2 python2-setuptools libffi-devel openssh openssl openssl-devel gcc
easy_install-2.7 pip
# To get `pycrypto` compiled, we must comment out the line:
# #define __BSD_VISIBLE 1
# in /usr/include/python2.7/pyconfig.h
#
# Otherwise it won't compile!!!
# See: http://cygwin.1069669.n5.nabble.com/python-2-7-12-pip-install-with-extensions-fails-with-warning-quot-BSD-VISIBLE-quot-redefined-td131045.html#a131120
# To get `cffi` compiled, we must provide the path to the `ffi.h` header file.
# This can be done with the CFLAGS environment variable. Currently the file
# is located in the directory `/usr/lib/libffi-3.2.1/include`.
CFLAGS=-I/usr/lib/libffi-3.2.1/include pip install ansible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment