在使用OpenSSL编译Caliber时遇到的问题

时间:2016-02-18 22:53:51

标签: python macos openssl qmake configure

我安装了所有依赖项以在mac上编译caliber,但是当我运行python setup.py build时,我收到以下错误:

...
####### Building extension lzma_binding #######

####### Building extension dukpy #######

####### Building extension hunspell #######

####### Building extension _regex #######

####### Building extension monotonic #######

####### Building extension speedup #######

####### Building extension zlib2 #######

####### Building extension certgen #######
Compiling certgen
gcc -Wall -DNDEBUG -fno-strict-aliasing -pipe -fPIC -D_OSX -fno-common -dynamic -O3
  -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7
  -c /Users/jeanlinux/projects/Desktop/calibre/src/calibre/utils/certgen.c
  -o /Users/jeanlinux/projects/Desktop/calibre/build/objects/certgen/certgen.o
/Users/jeanlinux/projects/Desktop/calibre/src/calibre/utils/certgen.c:11:10:
  fatal error: 'openssl/rand.h' file not found
#include <openssl/rand.h>
     ^
1 error generated.

我已经使用brew uninstall openssl卸载了openssl并安装回来但我仍然遇到同样的错误。

0 个答案:

没有答案