mac install m2Crypto

mac install m2Crypto

error

SWIG/_m2crypto.i:43: Error: Unable to find ‘openssl/opensslv.h‘
SWIG/_m2crypto.i:49: Error: Unable to find ‘openssl/safestack.h‘
SWIG/_evp.i:12: Error: Unable to find ‘openssl/opensslconf.h‘
SWIG/_rc4.i:5: Error: Unable to find ‘openssl/opensslconf.h‘
SWIG/_ec.i:7: Error: Unable to find ‘openssl/opensslconf.h‘
error: command ‘swig‘ failed with exit status 1

solution

brew install openssl
brew install swig
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" pip install m2crypto
posted @ 2018-01-13 23:45  keep_go  阅读(1495)  评论(0编辑  收藏  举报