Installing OCRopus on Debian/Ubuntu

Make sure that you have the following packages installed.

#apt-get install subversion build-essential ftjam jam libpng12-dev libjpeg62-dev aspell libjpeg62 libtiff4-dev

All these packages are available in the standard repositories, and can be installed with apt-get

Download tesseract by using the following command

$svn co tesseract-ocr

Next install tesseract by issuing the following commands

$cd tesseract-ocr


$sudo make install

Next download and extract the OCRopus package and issue the following commands from the extracted folder



$jam install

Testing OCRopus

If you have been able to get along this far, you will find a directory named ocrocmd with a file with the same name inside the directory that you are currently in. cd into ocrocmd and issue the command

$./ocrocmd test.png > out.html


August 26, 2008. Tags: . howto.


  1. Nalin sathyan replied:

    Sir I am very thankful for your valuable assistance in istallation ocropus .Now I can use ocropus in terminal. I find it very efficient useful.My father is a blind person. though he can use it independently it takes a lot of steps such as scanning,saving,the image,convertion tu text,then opening the output.

    Now my goal

    Now I so that tesseract and gocr in gscan2pdf ocr tool window.Is it possible to add ocropus to gscan2pdf as in the case of tessract.So that my father can get an ocr output just by giving a scan button.

  2. shridhar replied:

    hey dude I have followed same procedure but when i enter in ocropus directory it gives me following error

    /bin/bash: /home/shridhar/Desktop/ocr: No such file or directory
    configure: WARNING: `missing’ script is too old or missing
    configure: error: Could not find openFST! Choose –without-fst if you do not want to use it.

    now what should i do

  3. shridhar replied:

    When i enter ocropus directory n issue a command
    “./configure” it gives above error.
    Also no directory named ./ocrcmd creates

  4. Steve replied:

    I get this error after make sudo make install:

    ~/tesseract-ocr$ sudo make install
    Making install in ccstruct
    make[1]: Entering directory `/home/ghormax/tesseract-ocr/ccstruct’
    make[2]: Entering directory `/home/ghormax/tesseract-ocr/ccstruct’
    source=’blobbox.cpp’ object=’blobbox.o’ libtool=no \
    DEPDIR=.deps depmode=none /bin/bash ../config/depcomp \
    g++ -DHAVE_CONFIG_H -I. -I.. -I../ccutil -I../cutil -I../image -I../viewer -g -O2 -c -o blobbox.o blobbox.cpp
    /bin/bash: ../config/depcomp: No such file or directory
    make[2]: *** [blobbox.o] Error 127
    make[2]: Leaving directory `/home/ghormax/tesseract-ocr/ccstruct’
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/ghormax/tesseract-ocr/ccstruct’
    make: *** [install-recursive] Error 1

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback URI

%d bloggers like this: