Matt's Notepad

Installing Tesseract OCR on Mac OS X Lion

The simplest way, of course, is using Macports:

sudo port install tesseract

But this can get a bit outdated. To get the absolute latest version from source:

  1. Get dependencies:

    sudo port install leptonica
    
  2. Get source:

    svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr
    
  3. Compile and install:

    cd tesseract-ocr
    ./autogen.sh
    export LIBLEPT_HEADERSDIR="/opt/local/include/leptonica"
    make
    sudo make install
    sudo make install-langs
    

This is correct as of revision 729.