Skip to content

Instantly share code, notes, and snippets.

@vjyanand
Created December 10, 2015 12:55
Show Gist options
  • Save vjyanand/0a56f883b3874f927934 to your computer and use it in GitHub Desktop.
Save vjyanand/0a56f883b3874f927934 to your computer and use it in GitHub Desktop.
Installing tesseract on SmartOS
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