Saturday, August 2, 2008

how to install ocropus-0.2 (for newbies)

this guide is based on ubuntu 8.04LTS

step-1:
download ocropus-0.2,tesseract(use svn) and openfst.

step2:
open terminal (Applications->accessories->terminal)
make sure you are connected to internet.
then enter the fellowing commands -

$ sudo apt-get install libpng12
$ sudo apt-get install libpng12-dev
$ sudo apt-get install libtiff4
$ sudo apt-get install libtiff4-dev
$ sudo apt-get install libjpeg62
$ sudo apt-get install libjpeg62-dev
$ sudo apt-get install ftjam
$ sudo apt-get install zlib
$ sudo apt-get install libleptonica
$ sudo apt-get install libleptonica-dev
$ sudo apt-get install libedit-dev
$ sudo apt-get install aspell-en
$ sudo apt-get install libaspell-dev

step-3:
to build and install tesseract go to the tesseract root dir
commands are:

$./configure
$make
$sudo make install

step-4:
to build and install go to the openfst root dir

$cd fst
$make all
$sudo mkdir -p /usr/local/include/fst/lib
$sudo cp
-v fst/lib/*.h /usr/local/include/fst/lib
$sudo cp fst/lib/*.a /usr/local/lib

make sure that all the *.h files in
/usr/local/include/fst/lib
has the permision "read-only" for "others" catagory
make sure
/usr/local/lib/libfst.a has the same permission

to do this run these command:
$sudo chmod -R 755
/usr/local/include/fst/lib
$sudo chmod 755
/usr/local/lib/libfst.a

step-5:
go to the ocropus root dir the run these commands
$./configure --without-SDL
$jam
$sudo jam install

!!DONE!!

3 comments:

Md. Abul Hasnat said...

Souro, thanks again.

Unknown said...

Kindly post "how to install ocropus -0.3
or using sVN update for newbies" and also consolidated list of commandslines to be used in ocropus for benefit of newbies.

Anonymous said...
This comment has been removed by a blog administrator.