mac下安装tesseract-ocr

执行命令
1. ./configure
2. make
3. sudo make install
4. 安装语言包
解压tesseract-ocr-3.01.eng.tar.gz到/usr/local/share/tesseract就可以了。
遇到的问题
leptonica library missing
If get this error message when you run ./configure and your leptonica header files are located in /usr/local/include (e.g. you installed leptonica to /usr/local) than run:
LIBLEPT_HEADERSDIR=/usr/local/include ./configure
or:
CPPFLAGS=”-I/usr/local/include” LDFLAGS=”-L/usr/local/lib” ./configure

继续试试看吧。。。
哎哟,,还是第二个命令有效,终于过了,不容易啊。

你可能感兴趣的:(问题汇总)