Created
December 10, 2015 12:55
-
-
Save vjyanand/0a56f883b3874f927934 to your computer and use it in GitHub Desktop.
Installing tesseract on SmartOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/tesseract-ocr/tesseract.git | |
cd tesseract/ | |
pkgin in autoconf automake libtool | |
wget "http://www.leptonica.com/source/leptonica-1.72.tar.gz" | |
cd leptonica-1.72 | |
CFLAGS="-D__SOLARIS__" | |
./configure --prefix=/opt/local | |
make && make install | |
cd .. | |
export LIBLEPT_HEADERSDIR=/tmp/tesseract/leptonica-1.72/src | |
./autogen.sh | |
./configure --with-extra-libraries=/usr/local/lib --enable-shared | |
make && make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment