Note that there are some explanatory texts on larger screens.

plurals
  1. POocropus installation on Ubuntu 11.04
    primarykey
    data
    text
    <p>I need to install ocropus on Ubuntu 11.04. </p> <p>I went through a long and painful process of trying ocropus 0.3 and 0.4 from the project's Downloads page, but to no avail - I could find no way of making it locate tesseract, which it recommended. I labored on Google and came across the page <a href="http://code.google.com/p/ocropus/wiki/InstallTranscript" rel="nofollow noreferrer">http://code.google.com/p/ocropus/wiki/InstallTranscript</a>.</p> <p>Great. Except when I issue the command:</p> <pre><code>hg clone $release https://ocropus.googlecode.com/hg/ ocropus </code></pre> <p>I get the error message:</p> <pre><code>abort: unknown revision 'ocropus-0.4.4'! </code></pre> <p>A post here <a href="http://aur.archlinux.org/packages.php?ID=13444" rel="nofollow noreferrer">http://aur.archlinux.org/packages.php?ID=13444</a> by the maintainer of the ocropus package for archlinux says</p> <blockquote> <p>they have completely refactored ocropus and at the same time they have also completely removed the old repository so it's not possible to access the old "stable" versions. I suggest using the ocropus-hg package, at least for the time being. </p> </blockquote> <p>I thought I would go ahead with this idea and issued the command:</p> <pre><code>hg clone https://ocropus.googlecode.com/hg/ ocropus #I deftly avoid any mention of the release </code></pre> <p>The result is I get a folder with a file interestingly named ocroinst. I run it and it says I need to run the following commands:</p> <pre><code>sudo ./ocroinst packages #checks the dependencies ./ocroinst install #installs ocropus sudo ./ocroinst dl #downloads models </code></pre> <p>I was glad and I issued the first command, which is when I got the message:</p> <blockquote> <p>Package libjpeg8-dev is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package libjpeg8-dev has no installation candidate</p> </blockquote> <p>I think a certain Murphy may have had a point.</p> <p>The situation, with an delicious added complication, is this:</p> <p>(please correct me if I am wrong)</p> <ol> <li><p>Ubuntu 11.04 comes with libjpeg62-dev. The required version for ocropus is libjpeg8-dev.</p></li> <li><p>Ocropus requires libtiff4-dev, and libtiff4-dev depends on libjpeg62-dev. Therefore there is no way for me to uninstall libjpeg62-dev.</p></li> <li><p>libjpeg62-dev conflicts with libjpeg8-dev. Therefore, I can have only one of libjpeg8-dev or libjpeg62-dev, and never both.</p></li> <li><p>If libjpeg8-dev is installed, I will have no libjpeg62-dev, which means I must remove libtiff4-dev and therefore have no way to install ocropus.</p></li> <li><p>If libjpeg62-dev is installed, I will have no libjpeg8-dev and thus I will have no way to install ocropus.</p></li> </ol> <p><strong>NOTE:</strong></p> <p>(An experiment description)</p> <p>I had libjpeg62-dev installed on the system already. I figured I could take a chance and I went right ahead and changed every libjpeg8-dev I could find to <em>libjpeg-dev</em>, and ran the 3 commands. </p> <p>It installed. No error. </p> <p>This gave me great joy until I ran the command </p> <pre><code>ocropus &lt;image-file-name&gt; </code></pre> <p>and I was greeted by the charming:</p> <pre><code>ImportError: /usr/local/lib/python2.6/dist-packages/_iulib.so: undefined symbol: _ZN5iulib6dcloseEv </code></pre> <p>The more sophisticated </p> <pre><code>ocropus book2pages out image* </code></pre> <p>failed with the same error. A <a href="https://stackoverflow.com/questions/5134118/installing-ocropus-0-4-4">post on stack overflow</a> indicates that this is caused by incorrectly versioned libraries.</p> <p><strong>THE QUESTION:</strong></p> <p>How should I proceed?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload