OS X recently started using their own library instead of OpenSSL. So new installations for anything that depends on OpenSSL might fail. If you already have OpenSSL installed on your system, for example using Homebrew, you just need to point to the library while compiling your program.
For example, if you’re trying to install the popular cryptography
package from PyPI, you can do these:
1 |
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography |
The above mentioned package is a common dependency of many other packages, for example Scrapy. So if you encounter an issue like this, try installing that single dependency first and then the dependent package. In this case, first use the above command to install the cryptography package and later install Scrapy.
5 replies on “Fixing fatal error: ‘openssl/aes.h’ file not found on OS X”
[…] Reference: https://github.com/pyca/cryptography/issues/2350 https://masnun.com/2015/12/01/fixing-fatal-error-opensslaes-h-file-not-found-on-os-x.html […]
thanks, this helped!
Thanks!
File “/Users/test-integration/venv/lib/python2.7/site-packages/cffi/commontypes.py”, line 38, in resolve_common_type
“if you think it should be.” % (commontype,))
cffi.api.FFIError: Unsupported type: ‘int __dotdotdot__’. Please file a bug if you think it should be.
—————————————-
Cleaning up…
Thank you! Helped me, too!