Unable to run sudo ldconfig after compiling Tesseract 3.x?
This is a pretty specific solution for a pretty specific install. When compiling Tesseract 2.x, a workaround was needed to point ldconfig in the correct place: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib. However, if you try and build Tesseract 3.00 and up, you'll get this when running sudo ldconfig:
/usr/local/lib is not a known library type
Solution:
cd etc (must be at disk level)
sudo vi ld.so.conf
Remove the following line (pressing i to start editing):
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
Save and quit by pressing :x and then enter. Read more on the editing commands here.
You should be able to run sudo ldconfig now without an issue.
This was when I tested an install of 3.01 and 3.02 on Ubuntu 10.04.











