码迷,mamicode.com
首页 > 系统相关 > 详细

mac install m2Crypto

时间:2018-01-14 01:02:30      阅读:36      评论:0      收藏:0      [点我收藏+]

标签:conf   rc4   ras   with   --   class   flags   openssl   clu   

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

标签:conf   rc4   ras   with   --   class   flags   openssl   clu   

原文地址:https://www.cnblogs.com/fzw-/p/8280900.html

(0)
(0)
   
举报
评论 一句话评论(0
0条  
登录后才能评论!
© 2014 mamicode.com 版权所有 京ICP备13008772号-2
迷上了代码!