Unable to load library 'tesseract': libtesseract.so: cannot open shared object file: No such file or directory

后端 未结 4 1429
暗喜
暗喜 2020-12-16 21:12

I\'ve had tesseract and Tess4J running on my MBP for a while now. Today I started to migrate my app to the server and started installing everything on the server. Prior to r

相关标签:
4条回答
  • 2020-12-16 21:43

    Maybe it is a 32 bit library .so installed.

    0 讨论(0)
  • 2020-12-16 21:45

    I had this problem too.

    Did you run the following after installing tesseract:

    sudo ldconfig
    

    That fixed it for me.

    0 讨论(0)
  • 2020-12-16 21:46

    It is necessary to define the variable jna.platform.library.path. For instance:

    -Djna.platform.library.path=/usr/local/lib/

    0 讨论(0)
  • 2020-12-16 21:56

    You must set LD_LIBRARY_PATH environment variable to the path where libtesseract.so is.

    export LD_LIBRARY_PATH=/usr/local/lib
    
    0 讨论(0)
提交回复
热议问题