apt install autoconf-archive automake g++ libtool make pkg-config # for main recognization apt install asciidoc # for document apt-get install libicu-dev libpango1.0-dev libcairo2-dev # for training tool
sudo -i # build as root wget http://www.leptonica.org/source/leptonica-1.76.0.tar.gz # check http://www.leptonica.org/download.html for latest version tar -xzf leptonica-1.76.0.tar.gz cd leptonica-1.76.0/ ./configure make make install