python - openssl/aes.h' file not found on Mac -
i'm trying install python implementation of proxy re-encryption scheme found here.
when running $ sudo python setup.py install error
fatal error: 'openssl/aes.h' file not found
there few questions around (this or this (not mac)) none of answers there fixed problem.
i've tried (all taken answers found):
- running
env ldflags="-l$(brew --prefix openssl)/lib" cflags="-i$(brew --prefix openssl)/include" pip install cryptography, trying again; brew install openssl, trying again;brew reinstall python, trying again;
option 1. returned
requirement satisfied: cryptography in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages requirement satisfied: six>=1.4.1 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: setuptools>=11.3 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: cffi>=1.4.1 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: pyasn1>=0.1.8 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: enum34 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: ipaddress in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: idna>=2.0 in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cryptography) requirement satisfied: pycparser in /library/frameworks/python.framework/versions/2.7/lib/python2.7/site-packages (from cffi>=1.4.1->cryptography) i'm running osx 10.12.6.
any ideas?
first check if path pointed out brew --prefix openssl)/include exists.
if above fine, can try
$ cd /usr/local/include $ ln -s ../opt/openssl/include/openssl .
Comments
Post a Comment