Finally I got building tesseract, but honestly i don't know how ... I 
submitted many times the same code you posted, but only few days ago it 
worked.

Here is the working *Prebuild.sh*:

> #!/bin/sh
>
>
>>
>> #leptonica:
>
> cd leptonica-1.69 
>
> ./configure --prefix=$HOME/local/ 
>
> make install 
>
>
>> #tesseract: 
>
> cd ../tesseract-3.01 
>
> cp -R tessdata $HOME/local/share
>
> ./autogen.sh
>
> LIBLEPT_HEADERSDIR=$HOME/local/include
>
> ./configure --prefix=$HOME/local/ --with-extra-libraries=$HOME/local/lib
>
> export TESSDATA_PREFIX=$HOME/local/share/
>
> make install 
>
>
>> chmod +x $HOME/local/bin/tesseract
>
>
Attached to this post you find the full building log.
You can see few warning/errors that seem not to stop the building process, 
but that end up to affect tesseract execution because if I run this basic 
python code:

*wsgi.py*:

> import subprocess
> def application(environ, start_response):
>     status = '200 OK'
>     response_headers = [('Content-type', 'text/plain')]
>     start_response(status, response_headers)
>     
>     args = ['/home/dotcloud/local/bin/tesseract', 
> 'eurotext.tif','eurotext.txt']
>     p = subprocess.Popen(args, stdout = subprocess.PIPE, stdin = 
> subprocess.PIPE, stderr = subprocess.STDOUT)
>     preprocessed, _ = p.communicate()  
>     
>     return [preprocessed]+[_]


I got this:

Error in findTiffCompression: function not present
> Error in pixReadStreamTiff: function not present
> Error in pixReadStream: tiff: no pix returned
> Error in pixRead: pix not read
> Tesseract Open Source OCR Engine v3.01 with Leptonica
> Unsupported image type.


I'm sure what I miss are those libs (
http://code.google.com/p/tesseract-ocr/wiki/ReadMe):

sudo apt-get install autoconf automake libtool
sudo apt-get install libpng12-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libtiff4-dev
sudo apt-get install zlib1g-dev


but, again, I don't how to install them without sudo.

Thank you all
fabio 

On Wednesday, September 19, 2012 11:20:59 AM UTC+2, Nick White wrote:
>
> Hi, 
>
> I built and installed tesseract without root access, as I needed to 
> run it on a cluster (well, wanted to, for extra cool points.) 
>
> I built them like this: 
>
> leptonica: 
> ./configure --prefix=$HOME/local/ 
> make install 
>
> tesseract: 
> LIBLEPT_HEADERSDIR=$HOME/local/include ./configure \ 
>   --prefix=$HOME/local/ --with-extra-libraries=$HOME/local/lib 
> make install 
>
> That should be all you need. Let me know if you run into issues. 
>
> Nick 
>

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to