error while loading shared libraries: libtesseract.so.4: cannot open shared object file: No such file or directory

3,360 views
Skip to first unread message

Dan9er

unread,
Aug 26, 2017, 4:23:57 PM8/26/17
to tesseract-ocr
I'm trying to install Tesseract with training tools, and I'm getting this error. I pasted my console log here (too big for pastebin): https://drive.google.com/open?id=0B0YopyBgBXqNd05zWFk2NFFUUjg

ShreeDevi Kumar

unread,
Aug 27, 2017, 2:48:42 AM8/27/17
to tesser...@googlegroups.com
Do a search on libtesseract.so in your console.txt.

See if the path where it has been installed is available when you run tesseract. Otherwise add it to your PATh environment variable.

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Sun, Aug 27, 2017 at 12:54 AM, Dan9er <dan9ert...@gmail.com> wrote:
I'm trying to install Tesseract with training tools, and I'm getting this error. I pasted my console log here (too big for pastebin): https://drive.google.com/open?id=0B0YopyBgBXqNd05zWFk2NFFUUjg

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/fd514889-6026-4a17-b880-d14396e5434d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dan9er

unread,
Aug 27, 2017, 8:21:54 AM8/27/17
to tesseract-ocr
The search shows that it's in ../api/.libs/libtesseract.so

I don't know how to check or change my PATH environment variable. (I'm a UNIX n00b -.-)


On Sunday, August 27, 2017 at 2:48:42 AM UTC-4, shree wrote:
Do a search on libtesseract.so in your console.txt.

See if the path where it has been installed is available when you run tesseract. Otherwise add it to your PATh environment variable.

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Sun, Aug 27, 2017 at 12:54 AM, Dan9er <dan9ert...@gmail.com> wrote:
I'm trying to install Tesseract with training tools, and I'm getting this error. I pasted my console log here (too big for pastebin): https://drive.google.com/open?id=0B0YopyBgBXqNd05zWFk2NFFUUjg

--
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-oc...@googlegroups.com.

ShreeDevi Kumar

unread,
Aug 27, 2017, 10:15:20 AM8/27/17
to tesser...@googlegroups.com
Try 


sudo ldconfig


--------------

type

env

to see your environment variables, including PATH


Dan9er

unread,
Aug 27, 2017, 10:23:05 AM8/27/17
to tesseract-ocr
PATH=/home/dan9er/bin:/home/dan9er/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

Ok, now how do I add libtesseract.so?

ShreeDevi Kumar

unread,
Aug 27, 2017, 11:45:25 AM8/27/17
to tesser...@googlegroups.com
Did you do

sudo ldconfig

And try to run tesseract after that.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.

Dan9er

unread,
Aug 27, 2017, 11:55:47 AM8/27/17
to tesseract-ocr
It worked!! Thank you!


On Sunday, August 27, 2017 at 11:45:25 AM UTC-4, shree wrote:
Did you do

sudo ldconfig

And try to run tesseract after that.
On 27-Aug-2017 7:53 PM, "Dan9er" <dan9ert...@gmail.com> wrote:
PATH=/home/dan9er/bin:/home/dan9er/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

Ok, now how do I add libtesseract.so?

On Sunday, August 27, 2017 at 10:15:20 AM UTC-4, shree wrote:
Try 


sudo ldconfig


--------------

type

env

to see your environment variables, including PATH


--
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-oc...@googlegroups.com.

振宇韩

unread,
Jun 28, 2018, 12:38:59 AM6/28/18
to tesseract-ocr
use installed user eg:root

在 2017年8月27日星期日 UTC+8下午11:55:47,Dan9er写道:
Reply all
Reply to author
Forward
0 new messages