-1

I've installed Ubuntu 18.04.

I've installed tesseract using sudo apt-get install tesseract-ocr

When I type:

tesseract -v

I had an error:

tesseract: symbol lookup error: /usr/lib/x86_64-linux-gnu/libtesseract.so.4: undefined symbol: pixaDisplayTiledInColumns

Below is the output of apt-cache policy tesseract-ocr:

Installed: 4.00~git2288-10f4998a-2
Candidate: 4.00~git2288-10f4998a-2 
Version table: 
   *** 4.00~git2288-10f4998a-2 500 
          500 in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 
          100 /var/lib/dpkg/status
  • Below is the output of apt-cache policy tesseract-ocr tesseract-ocr: Installed: 4.00~git2288-10f4998a-2 Candidate: 4.00~git2288-10f4998a-2 Version table: *** 4.00~git2288-10f4998a-2 500 500 in.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 100 /var/lib/dpkg/status – mayur panchal Jan 12 '19 at 5:41
  • i think when you're installing tesseract-ocr package not extracting the archive. try to run sudo ldconfig and reinstall it again. or to get it, try to install libtesseract-dev package – abu-ahmed al-khatiri Jan 12 '19 at 15:48
  • -1. No response from OP - reduced usefulness. – Olimjon Jan 15 '19 at 2:00
  • @abu-ahmedal-khatiri i already tried sudo ldconfig, but not working – mayur panchal Jan 18 '19 at 11:25
2

This is a bug of tesseract package, which is found in release 4.00~git2481-555f6ffc-1. Do this:

sudo apt install libtesseract-dev libleptonica-dev liblept5
tesseract -v

If it did not help, just build tesseract from source...

Update 1: You can do

sudo apt purge tesseract* libtesseract*
sudo apt autoremove --purge

to remove everything that belongs to tesseract with configurations. However, it may also remove dependant packages, such as opencv (depends to libtesseract4)

  • Could you please reproduce this bug or give a link to bugzilla? I can't reproduce the issue with 4.00~git2288-10f4998a-2 on clean 18.04 LTS amd64 VM. – N0rbert Jan 11 '19 at 22:27
  • @N0rbert, bugs.debian.org/cgi-bin/bugreport.cgi?bug=903606. The user has probably installed from not official source. The solution is also taken from here. – Olimjon Jan 12 '19 at 1:01
  • i have already installed sudo apt install libtesseract-dev libleptonica-dev liblept5 – mayur panchal Jan 12 '19 at 5:47
  • @Olimjon can you please suggest how to remove tesseract with all the folder and reinstall again, i have tried installion.co.uk/ubuntu/xenial/universe/t/tesseract-ocr/… – mayur panchal Jan 12 '19 at 5:52
  • @mayurpanchal, I updated my answer, please check this. – Olimjon Jan 12 '19 at 6:24
2

On my clean Ubuntu 18.04 LTS VM with all updates Tesseract installs without any issues.
So it is completely operable.
The linked bug by @Olimjon is not related to current problem as it was reported after 18.04 LTS feature freeze.

On my system I have done the following:

$ sudo apt install tesseract-ocr -y

and got

$ tesseract -v
tesseract 4.0.0-beta.1
 leptonica-1.75.3
  libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 1.5.2) : libpng 1.6.34 : libtiff 4.0.9 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.0

 Found AVX
 Found SSE

$ apt-cache policy tesseract-ocr
tesseract-ocr:
  Installed: 4.00~git2288-10f4998a-2
  Candidate: 4.00~git2288-10f4998a-2
  Version table:
 *** 4.00~git2288-10f4998a-2 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status

So, if @mayurpanchal really want to solve Tesseract problem - then please update all packages in your system and install tesseract-ocr again and add requested output of ldd /usr/lib/x86_64-linux-gnu/libtesseract.so.4 to the question.
It may be PPA or third-party libraries issue.

  • 1
    +1 for detailed answer. However, it would have been better if OP has responded. – Olimjon Jan 15 '19 at 2:02
0

Here is the solution for ubuntu 18.04

Please first install the libraries which are required for tesseract-ocr

sudo apt install libtesseract-dev libleptonica-dev liblept5

Then simply install tesseract using command

sudo apt install tesseract-ocr -y

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.