[英]Native library (linux-x86-64/libtesseract.so) not found in resource path
I have RHEL7.3 in which i have built tesseract and i am able to execute my jar . 我有RHEL7.3,可以在其中构建tesseract,并且可以执行jar。 Now i have another system with same RHEL configuration and i want to execute the same jar But i don't want to build tesseract on this system so I pick /usr/lib64/libtesseract.so and /usr/lib64/liblept.so from previously builded tesseract system and put these so files in fresh RHEL7.3 system at /usr/lib64/ path and try to execute my jar but this time my jar did not execute succesfully .It ends with throwing ' java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (linux-x86-64/libtesseract.so) not found in resource path ' .What did i miss(dependencies) 现在,我有另一个具有相同RHEL配置的系统,并且我想执行相同的jar,但是我不想在此系统上构建tesseract,所以我从/usr/lib64/libtesseract.so和/usr/lib64/liblept.so中选择以前构建了tesseract系统,并将这些文件放在/ usr / lib64 /路径下的新RHEL7.3系统中,并尝试执行我的jar,但是这次我的jar没有成功执行。最后以抛出' java.lang.UnsatisfiedLinkError:Unable加载库'tesseract':在资源路径 '中找不到本机库(linux-x86-64 / libtesseract.so)。我错过了什么(依赖项)
I have - RHEL 7.3 (64 bit) - JRE 1.8.0_51 (64 bit) 我有-RHEL 7.3(64位)-JRE 1.8.0_51(64位)
请试试
yum install tesseract-ocr
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.