首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >UnsatisfiedLinkError: Error looking up function 'TessBaseAPICreate': /usr/lib/lib2.so.3.0.2:

UnsatisfiedLinkError: Error looking up function 'TessBaseAPICreate': /usr/lib/lib2.so.3.0.2:

作者头像
bear_fish
发布2018-09-19 13:14:11
发布2018-09-19 13:14:11
1.1K0
举报

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://cloud.tencent.com/developer/article/1342982

this may be the version of tesseract is not compatible to ubuntu version

as to me my programe runs in win10   has no  error ,but when in ubuntu 12.04  this error occurs

maybe  I install tesseract by the command

sudo apt-get install tesseract-ocr

but indeed in  ubuntu  

代码语言:javascript
复制
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

wget will fail ,you can download it first,and then upload to the server(leptonica-1.69.tar.gz google to download

Install Leptonica from source. The latest version as of writing is 1.69.

代码语言:javascript
复制
wget http://www.leptonica.org/source/leptonica-1.69.tar.gz
tar -zxvf leptonica-1.69.tar.gz
cd leptonica-1.69
./configure
make
sudo checkinstall
sudo ldconfig

Then install Tesseract OCR from source.

代码语言:javascript
复制
wget https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz
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

after this i solve this problem

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2016年12月26日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档