Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Created January 2, 2014 12:17
Show Gist options
  • Save matthiasg/8218449 to your computer and use it in GitHub Desktop.
Save matthiasg/8218449 to your computer and use it in GitHub Desktop.
compiling tesseract on smartos/solaris
  • download source

  • after installing leptonica with make install

  • export LIBLEPT_HEADERSDIR=/usr/local/include/leptonica

  • export C_INCLUDE_PATH=/opt/local/include

  • export CPLUS_INCLUDE_PATH=/opt/local/include

  • ./configure --with-extra-libraries=/usr/local/lib

    You can now build and install tesseract by running:

    $ make $ sudo make install $ sudo make install LANGS="eng ara deu"
    Or: $ sudo make install-langs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment