Skip to content

Instantly share code, notes, and snippets.

@hhsnopek
Last active January 28, 2019 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hhsnopek/da85dc04f05eff03eb9760ec056277df to your computer and use it in GitHub Desktop.
Save hhsnopek/da85dc04f05eff03eb9760ec056277df to your computer and use it in GitHub Desktop.
Pycrypto `include gmp.h` error

When installing pycrypto on OSX you must install gmp via homebrew and add the CFLAGS for the build to succeed.

$ brew install gmp
$ export "CFLAGS=-I/usr/local/include -L/usr/local/lib"
$ pip2 install pycrypto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment