Solve the error error while loading shared libraries: xxx.so when using tesseract

When using tesseract, the following error is prompted:

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

Refer to the blog , first search for this file in the /usr/local/lib directory, and I found it! It means that our tesseract did not miss this file when it was installed:
Insert picture description here
check if the path is added to the environment below:

vim /etc/ld.so.conf

See that the path /usr/local/lib already exists in this file. But still reported this error.

The reason is that the path is written but not updated, just use ldconfigupdate √
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44559752/article/details/109686342