For debian based systems
sudo apt-get install libleptonica-dev libtesseract-dev
For redhat base systems
sudo yum insall leptonica-devel tesseract-devel
错误处理:Unable to load library 'tesseract': libtesseract.so: cannot open shared object file: No such file or directory
brew install leptonica-devel
我这边安装的时候为什么找不到呀
Error: No available formula with the name "leptonica-devel"
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.