If pycrypto fails building for you with an error like:

# src/_fastmath.c:36:11: fatal error: 'gmp.h' file not found
#
# # include <gmp .h>
#
# ^
#
# 1 error generated.
#
# error: command 'cc' failed with exit status 1</gmp>

You need to run these two commands to show clang where to look for libraries:

export CPPFLAGS="-I/usr/local/include $CPPFLAGS"
export LDFLAGS="-L/usr/local/lib $LDFLAGS"

Comments