UbuntuLinux上的Tess4J,未满足链接错误

UbuntuLinux上的Tess4J,未满足链接错误,linux,tomcat,ubuntu,tesseract,tess4j,Linux,Tomcat,Ubuntu,Tesseract,Tess4j,我在Tomcat+Ubuntu(Linux)中使用Tess4j时遇到了一个不满意的链接错误 有解决方案或提示的人?Tess4J 2.0与Tesseract 3.03RC兼容。由于您的版本是3.02,您需要Tesser4J 1.x版本。这可能是tesseract版本与ubuntu版本不兼容 对我来说,我的程序运行在win10和ubuntu 16中没有错误,但在ubuntu 12.04中会出现这个错误 也许我可以通过命令安装tesseract sudo apt-get install tessera

我在Tomcat+Ubuntu(Linux)中使用Tess4j时遇到了一个不满意的链接错误


有解决方案或提示的人?

Tess4J 2.0与Tesseract 3.03RC兼容。由于您的版本是3.02,您需要Tesser4J 1.x版本。

这可能是tesseract版本与ubuntu版本不兼容

对我来说,我的程序运行在win10和ubuntu 16中没有错误,但在ubuntu 12.04中会出现这个错误

也许我可以通过命令安装tesseract

sudo apt-get install tesseract-ocr
但事实上,在我安装ubuntu 12之后,我会按流进行安装

sudo apt-get install libpng-dev libjpeg-dev libtiff-dev zlib1g-dev
sudo apt-get install gcc g++
sudo apt-get install autoconf automake libtool checkinstall
从源代码安装Leptonica。撰写本文时的最新版本为1.69。

wget http://www.leptonica.org/source/leptonica-1.69.tar.gz  (if you can't,download leptonica-1.69.tar.gz from the internet)
tar -zxvf leptonica-1.69.tar.gz
cd leptonica-1.69
./configure
make
sudo checkinstall
sudo ldconfig
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
(maybe you can download tesseract-ocr-3.02.02.tar.gz from the internet and then upload to the server )
tar -zxvf tesseract-ocr-3.02.02.tar.gz
cd tesseract-ocr
./autogen.sh
./configure
make (this may take a while)
sudo make install
sudo ldconfig
然后从源代码安装Tesseract OCR。

wget http://www.leptonica.org/source/leptonica-1.69.tar.gz  (if you can't,download leptonica-1.69.tar.gz from the internet)
tar -zxvf leptonica-1.69.tar.gz
cd leptonica-1.69
./configure
make
sudo checkinstall
sudo ldconfig
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
(maybe you can download tesseract-ocr-3.02.02.tar.gz from the internet and then upload to the server )
tar -zxvf tesseract-ocr-3.02.02.tar.gz
cd tesseract-ocr
./autogen.sh
./configure
make (this may take a while)
sudo make install
sudo ldconfig
之后我解决了这个问题