Skip to content

Instantly share code, notes, and snippets.

@appeltel
Last active July 29, 2016 12:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appeltel/8111f77aca52ec90c3c0d77d132d1ad8 to your computer and use it in GitHub Desktop.
Save appeltel/8111f77aca52ec90c3c0d77d132d1ad8 to your computer and use it in GitHub Desktop.
Get openssl deps working for python crypto on OSX 10.11 with brew
# remove your wheels
rm -r ~/Library/Caches/pip/wheels/*
# update brew
brew update
brew upgrade
brew install openssl #if needed
brew unlink openssl #if needed
# add some flags variables to your environment so your builds
# can find openssl headers and shared libs
export ARCHFLAGS="-arch x86_64"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CFLAGS="-I/usr/local/opt/openssl/include"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment