mac install m2Crypto
阿新 • • 發佈:2018-01-14
env pos solution flags body rras markdown div status
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
mac install m2Crypto