make uninstall
uninstall tesseract perfectly if you installed from source. If you
still have an issue, this means you had multiple installations of tesseract
in your system (e.g. installed in /usr and /usr/local or user in home
directory...) , or you did some unwise operation like installing 4x version
than installed 5x version and then running make uninstall (it will remove
5x version but there are libraries 4x available and preferred by you
system).

You can find installed problematic library quiet easily: find the tool that
report error (I guess tesseract executable will report it too) and then:

   1. find exact location of executable with:  $ which tesseract which will
   produce something like this: /usr/local/bin/tesseract
   2. run: $ ldd /usr/local/bin/tesseract which will produce something like
   this:
           linux-vdso.so.1 (0x7edeb000)
           /usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so =>
   /usr/lib/arm-li
           libtesseract.so.5 => /usr/local/lib/libtesseract.so.5
   (0x76ca3000)
           liblept.so.5 => /usr/lib/liblept.so.5 (0x76a55000)
           libarchive.so.13 =>
   /usr/lib/arm-linux-gnueabihf/libarchive.so.13 (0x769
           libcurl.so.4 => /usr/lib/arm-linux-gnueabihf/libcurl.so.4
   (0x76925000)
           librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x7690e000)
   ...
   3. remove /usr/local/lib/libtesseract.so.5 with $ rm
   /usr/local/lib/libtesseract*
   4. reinstall tesseract

This will not uninstall everything from previous installation, but at least
it will give you a hint, where to look for leftovers of uninstalled
tesseract.

Zdenko


št 29. 10. 2020 o 8:30 Fazle Rabbi <akafazlera...@gmail.com> napísal(a):

>
> I built the 4.1 version on ubuntu 20.04. Afterwards  i ran make uninstall
> because i wanted to try the latest version. i guess some files did not get
> removed during the process. Now after rebuilding the 5.0 version i get the
> following error when trying to run tesstrain.sh -
> "ERROR: shared library version mismatch (was 4.1.1, expected
> 4.1.1-rc2-25-g9707
> Did you use a wrong shared tesseract library?"
>
> Any pointers would be appreciated. Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tesseract-ocr+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/722a86f8-d016-4b7b-994d-eb53122ebc61n%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/722a86f8-d016-4b7b-994d-eb53122ebc61n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8y3kGk4BV8TM11eDMuaCmj6Uv9aoY%3D8Uq1Z6yiBdOT3fw%40mail.gmail.com.

Reply via email to