我安装了所有依赖项以在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并安装回来但我仍然遇到同样的错误。